maven 项目导入无法连接mysql报错

在尝试启动Spring Boot应用时,遇到Bean创建异常,源于无法创建HibernateJpaAutoConfiguration中的entityManagerFactory。问题根源是MySQL安装未配置正确端口,通过修改MySQL配置文件启用3306端口后,登录时出现SSL相关错误。解决方法是在数据库连接配置中关闭useSSL选项。
摘要由CSDN通过智能技术生成

部分报错信息
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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值