1. 程式人生 > >com.mysql.cj.jdbc.Driver

com.mysql.cj.jdbc.Driver

# Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
  • MySQL 5.7.16
  • Spring Boot 2.1.0.RELEASE

用傳統的xml檔案配置,啟動Spring Boot專案時,出現的提示,根據提示把配置檔案中的 com.mysql.jdbc.Driver

換成 com.mysql.cj.jdbc.Driver 即可。