Dynamic Web Module 2.3 change to 3.0 maven工程解決辦法

pom.xmljava

 1 <plugins>
 2             <plugin>
 3                 <groupId>org.apache.maven.plugins</groupId>
 4                 <artifactId>maven-compiler-plugin</artifactId>
 5                 <version>3.0</version>
 6                 <configuration>
 7                     <source>1.7</source>
 8                     <target>1.7</target>
 9                 </configuration>
10             </plugin>
11         </plugins>

web.xmlweb

1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xmlns="http://java.sun.com/xml/ns/javaee"
4     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
5     id="WebApp_ID" version="3.0">

org.eclipse.wst.common.project.facet.core.xmlapache

1 <?xml version="1.0" encoding="UTF-8"?>
2 <faceted-project>
3   <fixed facet="wst.jsdt.web"/>
4   <installed facet="wst.jsdt.web" version="1.0"/>
5   <installed facet="java" version="1.7"/>
6   <installed facet="jst.web" version="3.0"/>
7 </faceted-project>

切換爲3.0版本以後,項目路徑一直訪問不了,~~清空tomcat部署項目~~,問題終於解決tomcat

 

相關文章
相關標籤/搜索