How to solve the problem of 404 path error in SSM project

Insert picture description here

Note that my project structure looks like the following: After setting up the SSM framework, if the problem occurs, access the project website to report 404, that is, the WEB-INF/jsp/query.jsp file cannot be accessed, and the access path is bound to the controller. It is http://localhost:8080/user/query. The problem is solved as follows:
Insert picture description here
Important: Be careful not to fall into a fixed mindset, you think that the 404 is reported as a path problem, and there may be a series of java jar packages that have not been imported. (This is a more common problem in ideal)

Specific solution steps:
Step 1:
Insert picture description here
Step 2:
Insert picture description here
Step 3:
Insert picture description here
Step 4:
Insert picture description here
Step 5:
Insert picture description here

The result is shown in the figure:
Insert picture description here

Guess you like

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