Attribute "xmlns" was already specified for element "web-app".

\src\main\webapp\WEB-INF项目的web.xml发生错误

Attribute "xmlns" was already specified for element "web-app".

-----------------修改前------------------------------------------------

<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" xmlns="http://java.sun.com/xml/ns/javaee" 《===============删除
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

-----------------修改后------------------------------------------------

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">


-----------------修改前------------------------------------------------

<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" xmlns="http://java.sun.com/xml/ns/javaee" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

阅读更多
个人分类: WebServer
上一篇Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5
下一篇快的打车架构实践
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭