![](/img/trans.png)
[英]Properties in my application.properties are grayed out. Build success but Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl
[英]Caused by: java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl
无法弄清楚导致问题的原因。
我的 application.properties 文件
spring.datasource.url = "jdbc:mysql://localhost:3306/Medical_Tracking?useSSL=false"
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
快速帮助表示赞赏
your config spring.datasource.url should not use "", use spring.datasource.url = jdbc:mysql://localhost:3306/Medical_Tracking?useSSL=false instead
尝试在 applications.properties 文件中进行以下更改:
代替
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
和
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.