The content of element type "web-app" must match解决
关键字: web
The content of element type "web-app" must match "(
icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*, resource-ref*,security-constraint*,login-config?,security-role*, env-entry*,ejb-ref*,ejb-local-ref*)"
如果web-app上出现红叉,不要怕,看一看自己的web.xml文件里标签的顺序是否与它给出来的一致,
从上往下一定要遵循给出来的顺序
关键字: web
The content of element type "web-app" must match "(
icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*, resource-ref*,security-constraint*,login-config?,security-role*, env-entry*,ejb-ref*,ejb-local-ref*)"
如果web-app上出现红叉,不要怕,看一看自己的web.xml文件里标签的顺序是否与它给出来的一致,
从上往下一定要遵循给出来的顺序
本文介绍了如何解决web.xml文件中web-app标签顺序错误导致的问题。确保所有子标签按照规定的顺序排列可以避免编译错误。
3801

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



