| 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加载配置时,会报错 。 |
错误提示-ibatisorg.xml.sax.SAXParseException: The string "--" is not permitted within comments.
最新推荐文章于 2018-10-04 11:42:47 发布
文章详细介绍了Tomcat配置文件中出现的NodeletException和Runtime异常,原因在于XML文件中注释格式不正确。提供了解决方案,确保注释只能使用正确的格式,避免XML解析错误。
733

被折叠的 条评论
为什么被折叠?



