The content of element type "web-app"must match……问题之解决办法
程序员文章站
2022-06-13 12:51:57
...
部署项目时,web.xml一直标红,如下显示
鼠标移上去就能看见报错原因:
The content of element type "web-app"must match……
网上都是说顺序问题,然而并没有用,最后通过注释掉原本
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
这一段校验代码删掉,问题就解决了。
原因应该是:我添加的那部分代码符合xml文档规范,但不符合web-app_2_3.dtd所定义的规范。
推荐阅读
-
mybatis_ The content of element type association must match (constructor,id,result,ass ociation,collection,discriminator)
-
The content of element type "font-face" is incomplete, it must match "((font-face-src,(desc|title|me
-
The content of element type "web-app"must match……问题之解决办法
-
mybatis_ The content of element type association must match (constructor,id,result,ass ociation,collection,discriminator)
-
struts2---The content of element type "package" must match "(result-types?,inter
-
struts2---The content of element type "package" must match "(result-types?,inter