Idea add web project report 404 problem

Solve the problem of IDEA importing other's web project error:
Insert picture description here

Step 1: Click File first, then click Open to open your project file address, click OK.
Insert picture description here
Insert picture description here

Step 2: The project will report an error. It doesn't matter because your project path is not set, so click Project again as shown in the figure to set your project path.

Insert picture description here
Step 3: Choose your java, JDK version

Insert picture description here
Step 4: Click Modulesd, first click the minus sign to delete the existing project, and then click the plus sign again to add your project. The specific steps are as shown in the figure, and then don't forget to click Apply.

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Step 5: Then click again, Libraries add the ja package needed in your project, the specific steps are shown in the figure.
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Step 6: Then click Facets and select the WEB section. The specific method is also shown in the figure:
Insert picture description here
Insert picture description here
Insert picture description here

Step 7: Finally, click Artifacts to package the project. The specific steps are shown in the figure:
Insert picture description here
Insert picture description here

Insert picture description here
Step 8: Then refresh your project, don't let it report errors:
Insert picture description here

Step 9: After refreshing, click Add Config... to add your tomcat, as shown in the figure:

Insert picture description here
Step 10: After adding tomcat, choose your tomcat version.
Insert picture description here
The eleventh step: After selecting the version, click Deployment, and follow the figure below:

Insert picture description here
Insert picture description here
The twelfth step: After clicking the application, you can access the project after running the project. The following figure indicates success:
Insert picture description here

Insert picture description here

The fourteenth step: the
fifteenth step: the
sixteenth step: the
seventeenth step: the
eighteenth step: the
nineteenth step: the
twentieth step: the
twenty-first step: the
twenty-second step: the
twentieth Three steps:
twenty-fourth step:

Guess you like

Origin blog.csdn.net/qq_34134299/article/details/109569903