springboot 启动警告如下:
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.
意思是:com.mysql.jdbc.Driver 已经过期,建议使用新的驱动类:com.mysql.cj.jdbc.Driver
所以把:spring.datasource.driver-class-name=com.mysql.jdbc.Driver
改为:spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
相关类似问题:https://blog.csdn.net/weixin_42323802/article/details/82500458