Quando executo o comando:
java -jar cdcreact-1.0.0-SNAPSHOT.jar -Dspring.datasource.password=root
é apresentada a seguinte mensagem:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.3.1.RELEASE)
2017-02-23 14:45:34.877 INFO 27783 --- [ main] br.com.caelum.cdcreact.Boot : Starting Boot v1.0.0-SNAPSHOT on mac-fabricio with PID 27783 (/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar started by fabriciofs in /Users/fabriciofs/OneDrive/Estudo/Alura/react1)
2017-02-23 14:45:34.880 INFO 27783 --- [ main] br.com.caelum.cdcreact.Boot : No active profile set, falling back to default profiles: default
2017-02-23 14:45:34.917 INFO 27783 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4897628: startup date [Thu Feb 23 14:45:34 BRT 2017]; root of context hierarchy
2017-02-23 14:45:35.596 INFO 27783 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]
2017-02-23 14:45:35.937 INFO 27783 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$51502d44] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-23 14:45:36.502 INFO 27783 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2017-02-23 14:45:36.515 INFO 27783 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2017-02-23 14:45:36.520 INFO 27783 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.30
2017-02-23 14:45:37.389 INFO 27783 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2017-02-23 14:45:37.445 INFO 27783 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-02-23 14:45:37.445 INFO 27783 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2530 ms
2017-02-23 14:45:37.939 INFO 27783 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-02-23 14:45:37.942 INFO 27783 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-02-23 14:45:37.942 INFO 27783 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-02-23 14:45:37.942 INFO 27783 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-02-23 14:45:37.942 INFO 27783 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2017-02-23 14:45:38.096 INFO 27783 --- [ main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2017-02-23 14:45:38.104 INFO 27783 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2017-02-23 14:45:38.163 INFO 27783 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {4.3.11.Final}
2017-02-23 14:45:38.165 INFO 27783 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2017-02-23 14:45:38.166 INFO 27783 --- [ main] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist
2017-02-23 14:45:38.515 INFO 27783 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
Thu Feb 23 14:45:38 BRT 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2017-02-23 14:45:38.744 ERROR 27783 --- [ main] o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1694) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1215) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_11]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_11]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_11]
at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_11]
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327) ~[mysql-connector-java-5.1.38.jar!/:5.1.38]
at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:307) ~[tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:200) ~[tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:708) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:642) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:464) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:141) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:115) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:102) [tomcat-jdbc-8.0.30.jar!/:na]
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:126) [tomcat-jdbc-8.0.30.jar!/:na]
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:279) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:124) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857) [hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425) [hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849) [hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) [spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343) [spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318) [spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054) [spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829) [spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) [spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at br.com.caelum.cdcreact.Boot.main(Boot.java:10) [cdcreact-1.0.0-SNAPSHOT.jar!/:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_11]
at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_11]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [cdcreact-1.0.0-SNAPSHOT.jar!/:1.0.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
2017-02-23 14:45:38.747 WARN 27783 --- [ main] o.h.e.jdbc.internal.JdbcServicesImpl : HHH000342: Could not obtain connection to query metadata : Access denied for user 'root'@'localhost' (using password: NO)
2017-02-23 14:45:38.748 WARN 27783 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
2017-02-23 14:45:38.754 INFO 27783 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
2017-02-23 14:45:38.759 ERROR 27783 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE]
at br.com.caelum.cdcreact.Boot.main(Boot.java:10) [cdcreact-1.0.0-SNAPSHOT.jar!/:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_11]
at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_11]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [cdcreact-1.0.0-SNAPSHOT.jar!/:1.0.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:104) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:71) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:205) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857) ~[hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) ~[hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425) ~[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849) ~[hibernate-entitymanager-4.3.11.Final.jar!/:4.3.11.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) ~[spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343) ~[spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318) ~[spring-orm-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
... 22 common frames omitted
2017-02-23 14:45:38.798 INFO 27783 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-data-jpa-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-aop-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-aop-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/aopalliance-1.0.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/aspectjweaver-1.8.7.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-jdbc-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-jdbc-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-juli-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-jdbc-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/hibernate-entitymanager-4.3.11.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jboss-logging-3.3.0.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jboss-logging-annotations-1.2.0.Beta1.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/hibernate-core-4.3.11.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/antlr-2.7.7.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jandex-1.1.0.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/dom4j-1.6.1.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/xml-apis-1.0.b2.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/hibernate-commons-annotations-4.0.5.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/javassist-3.18.1-GA.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/javax.transaction-api-1.2.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-data-jpa-1.9.2.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-data-commons-1.11.2.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-orm-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-context-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-tx-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-beans-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/slf4j-api-1.7.13.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jcl-over-slf4j-1.7.13.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-aspects-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-devtools-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-autoconfigure-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-embed-jasper-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-embed-core-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-embed-el-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/ecj-4.4.2.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/mysql-connector-java-5.1.38.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-logging-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jul-to-slf4j-1.7.13.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/log4j-over-slf4j-1.7.13.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-core-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/snakeyaml-1.16.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-web-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-tomcat-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-embed-logging-juli-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/tomcat-embed-websocket-8.0.30.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-boot-starter-validation-1.3.1.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/hibernate-validator-5.2.2.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/classmate-1.1.0.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jackson-databind-2.6.4.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jackson-annotations-2.6.4.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jackson-core-2.6.4.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-web-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-webmvc-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/spring-expression-4.2.4.RELEASE.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jstl-api-1.2.jar!/, jar:file:/Users/fabriciofs/OneDrive/Estudo/Alura/react1/cdcreact-1.0.0-SNAPSHOT.jar!/lib/jstl-impl-1.2.jar!/]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764)
at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)
at br.com.caelum.cdcreact.Boot.main(Boot.java:10)
... 6 more
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:104)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:71)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:205)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
... 22 more
Meu MySQL esta funcionando corretamente.