The reference to entity “xxx” must end with the ‘;’ delimiter.

出现此问题是由于ConnectionURL 的书写有误导致的。

xml配置文件中,有一些字符需要转义:

转义正确后, 错误提示就么有了。

字符 转义字符 描述
& & 和
< &lt; 小于号
> &gt; 大于号
“ &quot; 双引号
‘ &apos; 单引号

此篇文章已被阅读2076 次