首页 > 其他 > 详细

The string “–” is not permitted within comments

时间:2016-02-01 15:39:32      阅读:240      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!