IDEA's web dynamic project creation

Create a normal Java project

  1. File – New – Project, choose Java
    https://www.cnblogs.com/star-1021/p/9986283.html

Create a web project

  1. File–>New–>Project
    select Java Enterprise,
    select tomcat,
    select Web Application, and create web.xml template
    Insert picture description here

  2. Enter project name and path
    Insert picture description here

  3. Click Finish to automatically switch the newly created project

  4. Create the classes and lib folders under the path…\web\WEB-INF\, the names cannot be changed
    Insert picture description here

  5. Specified classes classpath
    positioning Project Structure, specify the path to the newly created classes

Insert picture description here
6. Select the + sign on the previous picture, specify the lib path
Insert picture description here
you just created 7. Select Dependencies, click the + sign, and then select Jar Directory to specify the jar package directory as lib
Insert picture description here
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
Insert picture description here
10. confirm idea of web projects without default project name
Insert picture description here
11. edit the index.jsp file test
Insert picture description here
12. Click the green arrow in the upper right corner to test start tomcat
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46895251/article/details/108570304