web.xml configuration is as follows
spring-mvc.xml configuration is as follows
controller content is as follows
Project structure
Phenomenon: When starting tomcat, the jump pages index.jsp and showUser.jsp are both 404. Since the SSM framework is built, the integration of Spring MyBatis was successful before, but this problem occurred when integrating SpringMVC, and the jump page 404 tomcat background There are no exceptions in the logs, and debugging found that the controller was not entered. I hope the masters will take a look at it, thank you
世界只因有你2017-05-17 10:02:36
url-pattern intercepts all requests. What you configure is /, so you have to write a static resource that does not intercept when accessing it. In this way, the request is intercepted, and the static resources can be accessed normally. The static resources are not Just use Baidu to intercept this.