在使用动态代理的方法连接数据库报错:The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver

在Mybatis的配置文件properties配置文件中url加入

?serverTimezone=UTC

jdbc:mysql://localhost:3306/qihoo?serverTimezone=UTC

猜你喜欢

转载自www.cnblogs.com/lyz-tascdy/p/12084859.html
今日推荐