SpringBoot启动时报错:
错误代码 : : Driver claims to not accept
原因排查 : 连接数据库的url配置错误 :
-
修改前 :
spring: datasource: driver-class-name: url: mysql://localhost:3306/travel username: root password: root
-
修改后:
spring: datasource: driver-class-name: url: jdbc:mysql://localhost:3306/travel # 少复制了 jdbc: username: root password: root