错误提示-ibatisorg.xml.sax.SAXParseException: The string "--" is not permitted within comments.

tomcat报如下错误: Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. 网上都说是下面的办法解决: Caused by: org.xml.sax.SAXParseException: The string "--" is not permitted within comments. 这个异常很明显是 你xml文件中注释的问题 sqlmap配置文件中。注释只能是<!-- --> 在这其中不能再有--之类的东西。。。如:<!-- 某某--注释 -->这种情况。sqlmap加载配置时,会报错 。

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念