首页 > 其他 > 详细

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

时间:2016-11-13 22:12:08      阅读:211      评论:0      收藏:0      [点我收藏+]
<property name="url" value="jdbc:mysql://localhost:3306/ceshi?useUnicode=true&characterEncoding=utf8" />

一个正常的MySQL配置却一直报错:

The reference to entity "characterEncoding" must end with the ‘;‘ delimiter.

逐步深究出在xml配置文件中需要替换转译的几个符号:

在xml文件中有以下几类字符要进行转义替换:

 

需要转译符号  >  <  ‘  "  &
转译对象 &gt; &lt; &apos; &quot; &amp;

 

 


 






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

原文:http://www.cnblogs.com/ckxlovejava/p/6059862.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!