无法识别或代表多个时区。如果想利用时区支持,必须配置服务器或JDBC驱动程序(通过“serverTimezone”配置属性)以使用更特殊的时区值。
作者:互联网
错误码:
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.
在连接mysql的JDBC的url后面加上服务器的时区:serverTimezone=UTC
jdbc:mysql://localhost:3306/demo?serverTimezone=UTC
标签:UTC,JDBC,驱动程序,zone,mysql,serverTimezone,时区值,time 来源: https://blog.csdn.net/Amilieier/article/details/122821989