我当时用的时候查询功能可以使用,但是增加功能却用不了
最后的解决方案mysql mysql-connector-java 8.0.15
里面的version(版本)要与你本地下载的Mysql相近,不要差太多个版本,我本地的版本是8.0.27
二、新版本和旧版本的区别新版本的连接里面需要加上serverTimezone=UTC
不然就会出现下面的错误:
Cause: 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.



