java - SSM integration page prompts 404 problem, please take a look (Spring+MyBatis is successful, but integrating SpringMVC always gives 404)
仅有的幸福
仅有的幸福 2017-05-17 10:00:36
0
1
972

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

仅有的幸福
仅有的幸福

reply all(1)
世界只因有你

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template