Home > Back-end >  Springboot start times the wrong already configured the database connection url, or an error
Springboot start times the wrong already configured the database connection url, or an error

Time:12-31

 springboot start times the wrong already configured the database connection url, or an error

CodePudding user response:

In starting the class try to add the annotation
 @ SpringBootApplication (exclude={DataSourceAutoConfiguration. Class}) 

CodePudding user response:

I can't a brother, have tried

CodePudding user response:

Com. Mysql. JDBC Driver is mysql connector - Java for MySQL5,
Com. Mysql. Cj. JDBC Driver is mysql connector - Java for the MySQL6
Check the introduced by the driver version and configuration is the corresponding

CodePudding user response:

Version with 6 or not can, same error

CodePudding user response:

Classpath no drive,,,

CodePudding user response:

Check the pom file, mysql introduced depend on whether it is right

CodePudding user response:

Have you found the reason? I also encountered this kind of situation, have configured, or an error, is probably not loaded

CodePudding user response:

Try to connect to

CodePudding user response:

reference haven't bald scene at the beginning of the eighth floor response:
try to connect to

Spring. The datasource. Data - the username=root
Spring. The datasource. Data - password=123456

CodePudding user response:

Don't have to manually set the Mysql driver version, because springboot can automatically inferring, remember to introduce Mysql dependence in pom

CodePudding user response:

references 9/f, scene at the beginning of JingChu, reply:
Quote: refer to the eighth floor hasn't bald scene early reply:

Try to connect to

Spring. The datasource. Data - the username=root
Spring. The datasource. Data - password=123456

This works for half a day only to find that all versions of integrated many names are always changing you say they do framework is idle
  • Related