新版的mysqljdbc驱动jar包的配置与之前发生了改变,今天在配置mybatis中mysql驱动的时候一直报错:
org.apache.ibatis.exceptions.PersistenceException:
Error querying database. 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.
The error may exist in userMapper.xml
The error may involve com.ycc.mybatisStudy.userMapper.selectUser
The error occurred while executing a query
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.
…
自己也是检查了半天的jdbc的配置也没有发现什么问题,后来在网上百度了一下发现是jdbc的配置发生了改变
老版配置mysqljdbc驱动:
<property name="driver" valu