Mysql5换成Mysql8之后报错java.lang.ClassNotFoundException: com.mysql.jdbc.driver的问题解决

排除了依赖和版本等问题、最终解决方法为

在链接后面加上如下设置
useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8

猜你喜欢

转载自blog.csdn.net/weixin_39709134/article/details/123603885