mybatis-plus 报错Loading class `com.mysql.jdbc.Driver'. ...The new driver class is `com.my

如题所示,此问题是由于springboot的高版本导致的,因该将原来的
com.mysql.jdbc.Driver跟换为com.mysql.cj.jdbc.Driver
如图:
mybatis-plus 报错Loading class `com.mysql.jdbc.Driver'. ...The new driver class is `com.my
此外还有一报错:
java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
解决方法是在数据库连接URL后加已参数:&serverTimezone=GMT%2B8
如图:
mybatis-plus 报错Loading class `com.mysql.jdbc.Driver'. ...The new driver class is `com.my
PS:application.properties是房子config文件加下的
cmybatis-plus 报错Loading class `com.mysql.jdbc.Driver'. ...The new driver class is `com.my
.properties文件和.yml文件人选一个就好
有时候将application.properties放在static文件夹下有时也可以读取。不知道为啥,还是放config下,放心点。

报错解决方案来自(侵删):https://blog.csdn.net/feinifi/article/details/103836362