LoggingFailureAnalysisReporter 启动失败

it2025-09-15  3

初创spring boot项目时,启动项目idea果断报错。 解决: maven注释jdbc,再次启动错误消失,故错误是跟jdbc挂钩的。第一反应是是否有写mysql配置,是否正确。 方法1.yml

spring: datasource: username: root password: 123456 url: jdbc:mysql://localhost:3306/springboot?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8 driver-class-name: com.mysql.cj.jdbc.Driver

方法2

spring.datasource.data-username=root spring.datasource.data-password=123456 spring.datasource.url=jdbc:mysql://localhost:3306/springboot?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
最新回复(0)