Home > Back-end >  Springboot load is less than the database driver
Springboot load is less than the database driver

Time:12-05

  , every brother please look at the trouble, also some, the first integration of the boot and MVC

CodePudding user response:

Spring. The datasource. DriverClassName=com) mysql). The JDBC Driver

CodePudding user response:

Put a Driver S

. com. Mysql. JDBC Driver

CodePudding user response:

refer to the second floor soton_dolphin response:
added a Driver S

. com. Mysql. JDBC Driver

Hello, this is I intentionally write wrong, he also suggests the error, illustrate the value behind the not read

CodePudding user response:

CodePudding user response:

refer to the second floor soton_dolphin response:
added a Driver S

. com. Mysql. JDBC Driver

As shown in the above, there is no any change

CodePudding user response:

Priority loading yml, you this is the invalid configuration

CodePudding user response:

refer to 6th floor wangb_java response:
priority loading yml, you this is the invalid configuration

I in yml to load the driver he didn't have the scan

CodePudding user response:


Priority loading yml, configuration or no IDea with the same configuration

CodePudding user response:

Ha ha, you deserve the druid connection pool, quote is wrong tomcat JDBC connection pool, spring the boot without configuration driver, you may be there is a problem in other places, my blog with spring inside the boot all kinds of connection pool configuration method and principle

CodePudding user response:

By the way, the connection pool configuration has a prefix, your type is a druid, and other configuration not druid prefix, match to the tomcat JDBC, you this is wrong,

CodePudding user response:

Is in the classpath? Another database is 8.0 with com. Mysql. Cj). The JDBC Driver, 5.7 with com. Mysql.. JDBC Driver.
  • Related