Convert maven to web project

1. Right-click the project, select Project Facets, and click Convert to faceted from 
2. Change the Version of Dynamic Web Module to 2.5. (3.0 is for Java7, not supported by Tomcat6). 
If it prompts an error, you may need to set the Compiler compliance level in the Java Compiler to 1.6. Or you need to change the Java Version in this window to 1.6. 
3. Click on the following Further configuration available..., the Modify Faceted Project window will pop up. 
Here is the path to set the web.xml file, enter src/main/webapp. 
Generate web .xml deployment descriptor automatically generates web.xml file, optional. 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327038356&siteId=291194637