报错信息:
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.
解决方法:
在配置文件application.properties中,将spring.datasource.driver-class-name由
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
改为
com.mysql.cj.jdbc.Driver