问题描述:
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 specific time zone value if you want to utilize time zone support.
原因:
持久化异常原因:java.sql.SQLException:服务器时区值无法识别或代表多个时区。 如果希望利用时区支持,则必须(通过serverTimezone配置属性)配置服务器或JDBC驱动程序,以使用更特定的时区值。
解决办法
mybatis.config.xml文件中url加入:
serverTimezone=Asia/Shanghai
感谢您的观看!