部分报错信息
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.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2019-12-13 18:09:19.869 INFO 91776 — [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-12-13 18:09:19.879 INFO 91776 — [ restartedMain] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
2019-12-13 18:09:19.883 ERROR 91776 — [ restartedMain] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityM

在尝试启动Spring Boot应用时,遇到Bean创建异常,源于无法创建HibernateJpaAutoConfiguration中的entityManagerFactory。问题根源是MySQL安装未配置正确端口,通过修改MySQL配置文件启用3306端口后,登录时出现SSL相关错误。解决方法是在数据库连接配置中关闭useSSL选项。
最低0.47元/天 解锁文章
5092

被折叠的 条评论
为什么被折叠?



