Spring整合Mybatis时出现:Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone…
其实这个不是spring boot + mybatis的问题, 其实是为了使MySQL JDBC驱动程序的5.1.33版本与UTC时区配合使用,必须在连接字符串中明确指定serverTimezone。
Spring整合Mybatis时出现:Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone…
其实这个不是spring boot + mybatis的问题, 其实是为了使MySQL JDBC驱动程序的5.1.33版本与UTC时区配合使用,必须在连接字符串中明确指定serverTimezone。