1 、版本说明:
idea-2019.3.3
springboot-2.2.5
mysql-8.0147
2、 配置与问题说明:
配置:url: jdbc:mysql://localhost:3306/jdbc
问题: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.
3.修改配置:
url:jdbc:mysql://localhost:3306/jdbc?serverTimezone=UTC&useUnicode=true&charaterEncoding=utf-8&useSSL=false
springboot的配置sql的时区问题
最新推荐文章于 2023-08-09 16:44:59 发布