MyBtis连接过程中因为Mysql驱动版本问题的两种错误

第一种:Mysql驱动版本过低,建议使用5.x版本

java.lang.AbstractMethodError: Method com/mysql/jdbc/ResultSet.isClosed()Z is abstract

第二种:Mysql版本过高,6.0以上,需要在uri路径后面配置serverTimezone参数。例如:

              jdbc.uri=jdbc:mysql://localhost:3306/test?serverTimezone=Asia/Shanghai

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.

 

你可能感兴趣的:(日常找bug)