Spring boot unable to determine jdbc url from datasouce

1. 首先删除

 

@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})

 

2. 在配置文件里添加完整的datasource属性

spring.datasource.url=jdbc:mysql://localhost:3306/mydatabase?verifyServerCertificate=false&useSSL=false&requireSSL=false
spring.datasource.username=<username>
spring.datasource.password=<password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.ddl-auto=update

 

 
posted @ 2018-10-16 08:59  googlegis  阅读(8831)  评论(0编辑  收藏  举报

坐标合肥,非典型GIS开发人员 GitHub