码迷,mamicode.com
首页 > 其他好文 > 详细

The string “–” is not permitted within comments

时间:2016-02-01 15:40:43      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

ibatis中SAXParseException异常:The string "--" is not permitted within comments

这个异常是说sqlmap里面的注释不符合规范。

1. 这个问题之前看到过有一种解决方案,就是在注释结束前,也就是“–>”前面加一个英文半角的空格。

2. 今天发现了另外一个解决的方法,就是执行程序的时候加上jvm的参数

-Dfile.encoding=UTF8

这样子就算注释结束符前面不加空格也是可以的。

用eclipse的可以在run或者debug configuration里面添加vm参数。

 

 

 

org.xml.sax.SAXParseException

XML解析异常

由于xml中<!-- 【注释】--> 注释与-->之间没有空格造成xml解析错误

 

 

基本上确定是由于注释的空格引起的。

以上摘自 http://blog.csdn.net/free4294/article/details/38681095

(还有可能是乱码造成的)

The string “–” is not permitted within comments

标签:

原文地址:http://www.cnblogs.com/whatlonelytear/p/5175187.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!