Could not get JDBC Connection; nested exception is java.sql.SQLException:

Could not get JDBC Connection; nested exception is java.sql.SQLException:_第1张图片报错信息:
Could not get JDBC Connection; nested exception is 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.
原因:jdbc驱动版本不兼容数据库
解决方法
.修改jdbc.properties文件
修改url即可。
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/AppStore?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true

你可能感兴趣的:(mysql,jdbc,mybatis,java,spring)