Tip: Regarding the problem that the new web folder of idea cannot be recognized when starting Tomcat

Manually add an unrecognized processing method to the web folder

The process of the problem

Phenomenon : Manually add a new maven project or directly add a manually added web project. The added web folder cannot be accessed in the browser after it is started in the idea.

Reason : The manually added web folder does not have the access path mapping configured in the idea when the project is running.
The situation is as follows:
1. No association
Insert picture description here
is configured 2. Association has been configured. It
Insert picture description here
can be seen that the associated web folder idea will be specially marked-"circle dot (○)"

Add method

Solution: Select the current error project, click "file" to find "Project Structure...", then select the "Facets" menu, find the current project on the right side, add the mapping relationship in the "Web Resource Directories" column, Apply and OK Enough.
As follows:
Insert picture description here

Guess you like

Origin blog.csdn.net/rao991207823/article/details/107900442