HikariPool-1 - jdbcUrl is required with driverClassName

后端 未结 2 1580
离开以前
离开以前 2021-02-05 08:51

I went back to programming my old program https://github.com/JonkiPro/REST-Web-Services. I\'ve updated Spring Boot from version 15.6 to version 2.0.0. I have encountered many pr

2条回答
  •  长发绾君心
    2021-02-05 09:14

    Either remove spring.datasource.driver-class-name property or rename the spring.datasource.url property to spring.datasource.jdbc-url.

    This is reported in your error:

    java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName

    First option looks cleaner and Spring Boot will figure out the default driver class name based on the spring.datasource.url property value (see org.springframework.boot.jdbc.DatabaseDriver class if you want to debug this).

提交回复
热议问题