您的位置:首页 > 编程语言 > Java开发

struts-config.xml注释引发的启动异常

2009-02-20 11:04 369 查看
开始只注意到

Parsing error processing resource path jndi:/localhost/JOA/WEB-INF/struts-config.xml

网上搜索无果,后来看到一段:

严重: Parse Fatal Error at line 37 column 9: The string "--" is not permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within comments.

其实错在这个注释上:

<!---------------用户信息------------------>

正确写法:

<!-- 用户信息 -->

虽然启动正常,但注释语法的错误也得注意!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐