问题描述:
Failed to bind properties under 'spring.datasource.druid.driver' to java.sql.Driver:
Property: spring.datasource.druid.driver
Value: com.mysql.jdbc.Driver
Origin: class path resource [application.yml]:5:20
Reason: No converter found capable of converting from type [java.lang.String] to type [java.sql.Driver]
解决方法
修改application.yml文件将老版本的
spring:
datasource:
driver: com.mysql.jdbc.Driver
修改为
spring:
datasource:
druid:
driver-class-name: com.mysql.jdbc.Driver