springBoot: 启动报错, 出现乱码

Problem:

SpringBoot启动报错:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than ...

Solution:

将springBoot的配置文件,application.properties中的:

url:jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true

中的

useUnicode=true&characterEncoding=UTF-8

替换为

serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8

即可解决乱码问题。

发布了54 篇原创文章 · 获赞 4 · 访问量 3585

猜你喜欢

转载自blog.csdn.net/qq_40994260/article/details/102990698