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.