在数据库连接配置文件中加入以下:
解决办法为在application文件中添加serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/t?useCharactorEncoding=utf-8&useSSL=false&serverTimezone=UTC
首页 > 技术文章 > java.sql.SQLException: The server time zone value 'Öùú±ê׼ʱ¼ä' is unrecognized or repr
nongzihong 2019-04-13 03:31 原文
在数据库连接配置文件中加入以下:
解决办法为在application文件中添加serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/t?useCharactorEncoding=utf-8&useSSL=false&serverTimezone=UTC