在数据库连接配置文件中加入以下:
解决办法为在application文件中添加serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/t?useCharactorEncoding=utf-8&useSSL=false&serverTimezone=UTC
在数据库连接配置文件中加入以下:
解决办法为在application文件中添加serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/t?useCharactorEncoding=utf-8&useSSL=false&serverTimezone=UTC