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

问题:
修改web.xml 文件中的拦击器中的URL后
报错The reference to entity "locale" must end with the ';' delimiter.

出错代码:

项目:基于CAS的SSO单点登录,在web.xml中配置公共的拦截器
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://demo.tch.com:8081/cas/login/</param-value>
</init-param>


错误原因:
login后的/< 解析为转译 <,导致 param-value 没有被解析到另一半的<,所以报错

如下内容在XML中需要进行转译
&lt; < 小于号
&gt; > 大于号
&amp; &
&apos; ' 单引号
&quot; " 双引号


解决:
去掉 /

总结:
xml文件中的常见字符的转译

猜你喜欢

转载自mingyundezuoan.iteye.com/blog/2216376