首页新闻找找看学习计划

Referenced file contains errors (jar:file:/D:/develop/eclipse/plugins/

0
[待解决问题]

exlipse 项目web.xml页面报错,报错信息在:

Referenced file contains errors (jar:file:/D:/develop/eclipse/plugins/org.eclipse.wst.standard.schemas_1.0.800.v201706011851.jar!/dtds/loose.dtd).
For more information, right click on the message in the Problems View and select "Show Details..."

停不下来的菜鸟的主页 停不下来的菜鸟 | 菜鸟二级 | 园豆:224
提问于:2019-01-28 11:49
< >
分享
所有回答(1)
0

给个例子:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns="http://java.sun.com/xml/ns/javaee" 
   xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
   http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
   id="WebApp_ID" version="3.0">
   
   <display-name>ycyzharry</display-name>
   <welcome-file-list>
      <welcome-file>welcome.jsp</welcome-file>
   </welcome-file-list>
   <filter>
      <filter-name>struts2</filter-name>
      <filter-class>
         org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
      </filter-class>
   </filter>

   <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>/*</url-pattern>
   </filter-mapping>
</web-app>
ycyzharry | 园豆:18642 (专家六级) | 2019-02-02 10:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册