The reference to entity “serverTimezone“ must end with the ‘;‘ delimiter 的解决方法

问题描述

在xml中配置数据库信息时,出现错误:

The reference to entity "serverTimezone" must end with the ';' delimiter.

如图所示:


原因分析:

这句话的大致意思为对实体“serverTimezone”的引用必须以“;”分隔符结尾。

下面是配置👉

jdbc:mysql://localhost:3306/workflow?useSSL=false&serverTimezone=Asia/Shanghai

一般是因为 xml文件里面出现 " & " ,xml文件是无法直接正常输出&等特殊字符的


解决方案:

& 后面加上amp;

修改如下👉,完美解决

jdbc:mysql://localhost:3306/workflow?useSSL=false&serverTimezone=Asia/Shanghai

创作不易,关注💖、点赞👍、收藏🎉就是对作者最大的鼓励👏,欢迎在下方评论留言🧐

posted on 2022-11-13 20:47  猫的树kireCat  阅读(71)  评论(0编辑  收藏  举报