Home  >  Q&A  >  body text

java - SSM integration page prompts 404 problem, please take a look (Spring+MyBatis is successful, but integrating SpringMVC always gives 404)

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

仅有的幸福仅有的幸福2713 days ago919

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你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.

    reply
    0
  • Cancelreply