码迷,mamicode.com
首页 > 移动开发 > 详细

web.xml中<web-app>报错了--The content of element type "web-app" must match

时间:2017-08-27 10:09:11      阅读:4970      评论:0      收藏:0      [点我收藏+]

标签:splay   strong   png   ext   uri   http   资料   servlet   img   

web.xml中<web-app>报错了--The content of element type "web-app" must match。真是活见鬼!

技术分享

查完资料后发现,原来web-app_2_3.dtd规范有规定,里面配置的内容要按照规定的顺序来,如下:

(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*)

得,用人家的东西就按照人家的规矩来,把filter配置放到servlet前面后错误消失,够狠!

技术分享

用你的东西就要听你的,不用你的东西你就管不到了吧,索性把你给删了,发现也行。

技术分享

 

web.xml中<web-app>报错了--The content of element type "web-app" must match

标签:splay   strong   png   ext   uri   http   资料   servlet   img   

原文地址:http://www.cnblogs.com/yitianshuo/p/7438112.html

(0)
(3)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!