Create a normal Java project
- File – New – Project, choose Java
https://www.cnblogs.com/star-1021/p/9986283.html
Create a web project
-
File–>New–>Project
select Java Enterprise,
select tomcat,
select Web Application, and create web.xml template
-
Enter project name and path
-
Click Finish to automatically switch the newly created project
-
Create the classes and lib folders under the path…\web\WEB-INF\, the names cannot be changed
-
Specified classes classpath
positioning Project Structure, specify the path to the newly created classes
6. Select the + sign on the previous picture, specify the lib path
you just created 7. Select Dependencies, click the + sign, and then select Jar Directory to specify the jar package directory as lib
8. Manually copy the extra jar to the lib under the workspace inside, copy the project to facilitate future
9. check whether the integration tomcat, run - after setting edit Configurations start automatically open a browser with google cancel
10. confirm idea of web projects without default project name
11. edit the index.jsp file test
12. Click the green arrow in the upper right corner to test start tomcat