由于web.xml 头文件比较旧。规定了代码的书写顺序所以报错。要么按照规定的顺序写代码。要么删除规定。但是删除规定会导致智能提升失效。 这里可以使用一些其他版本的 web.xml 的头文件来进行 web.xml 文件的配置 web.xml v2.3 代码语言:javascript 复制 <?xml version="1.0"encoding="ISO-8859-1"?><...
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-...
解决The content of element type "web-app" must match报错 Spring MVC中配置多个Servlet时,IDEA报错,如下: 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 ...
解决:The content of element type “web-app” must match “(icon ,display- 错误: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*,wel...
原因:标签的顺序有误:元素类型“web app”的内容必须匹配,要求的顺序为: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...
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- ...
ontent 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...
错误: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- ...
The content of element type “web-app” must match…… 问题原因 没有按照 web-app_2_3.dtd 规范来写 web-app 标签。 解决方法 按照规范来写,即按照错误信息中的标签出现顺序编写 web-app 标签。 改用新版本 web-app 标签(各版本 web-app 标签)。
原博文 web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?, 2016-11-25 16:12 −... 跨境电商杂货铺 0 31748 HTTP Content-Type 2019-12-21 16:39 −jmeter测接口中发现接口调不通,接口请求和参数都没问题,和开发沟通后,发...