1. Click Maven Project, tick create a SIPMLE project (the structure is relatively complete), click Next after the creation is complete
2. Click the Project Right button to complete the information of Web. XML, or you can manually create it yourself.
3. Add the compilation environment to the Pom.xml file, right-click on the project maven--"Update project, you can see the JDK compiled version of the version has become 1.7.
4. Add project dependencies, such as Create a servlet dependency, Servlert-api.jar, add dependency, or click Pom.xml Bottom Bar, right-maven--"add dependency to add
Here, by the way, depends on the scope (which is dependent on the <scope> property)
If you import a jar package that comes with Tomcat, you need to set the dependency range for the item purpose to provided
5. Follow the above add dependency, if the discovery depends on the search, may be the search depends on the index is not open
6. Run a well-written project (if you need to take a breakpoint, you need to introduce a project source)
Use Eclipse to create a simple MAVEN project