After idea creates a maven project, it cannot create a servlet problem every time it is reopened (there is no way to create a servlet after idea restarts)

Description of the problem: idea creates a maven project, and the servlet reference in the pom file is correct, and there is no card conflict servlet, but sometimes opening idea can create a servlet, sometimes not, as shown in the following figure:

Solution:

1. Find File -> Project Structure in the menu bar, and open it as shown in the figure below:

Then go to create a servlet and find that it can be created.

Guess you like

Origin blog.csdn.net/dazhanglao/article/details/117217860