错误信息
在开发时遇到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.
错误原因分析
在数据连接字符串后面加上未设置标准时间?
错误解决办法
在数据连接字符串中增加?serverTimezone=UTC(其中UTC是统一标准世界时间)。问题解决
总结
本文章是通过增加连接字符串解决,也可以修改数据的区时解决,这里就不说讲了
欢迎交流!