问题:
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.
1.出现这个问题就我而言是因为本地的mysql版本高,按照官方要求,更改他的driver
1.1更改前
#数据源配置
spring.datasource.username=root
spring.datasource.password=
spring.datasource.url=jdbc:mysql://localhost:3306/xxx?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false
#更改之前
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
1.2更改后
#数据源配置
spring.datasource.username=root
spring.datasource.password=
spring.datasource.url=jdbc:mysql://localhost:3306/xxx?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false
#更改后
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
2.问题解决