正文
小伙伴们,你们好呀!我是老寇!
老寇兴高采烈的启动了项目,出现 java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName.
解决方案
较低版本写法: spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://X.X.X.X:3306/kcloud?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true username: XXX password: XXX 高版本写法: spring: datasource: driver-class-name: com.mysql.jdbc.Driver jdbc-url: jdbc:mysql://X.X.X.X:3306/kcloud?serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true username: XXX password: XXX