studyaccount_01
学习经验
Mybatis学习历程
IDEA报错
-
报错信息:
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.
-
报错原因:
- 配置文件中<dependency>标签中中使用的MySql驱动版本过高
-
解决方法(两种):
- ①降低sql版本
- ②将SqlMapConfig.xml文件中url的value加上“?serverTimezone=UTC&characterEncoding=utf8”