1、@RequestMapping路径与浏览器路径不一致
2、Spring-MVC配置文件中的<mvc:annotation-driven/>和<context:component-scan></context:component-scan>MVC必须在前
3、web.xml中,关于Spring和SpringMVC的xml文件路径是否和工程中所在位置一致(包名要写全)
4、注解配置是否有写(包括但不限于@Controller @RequestMapping...)
1、@RequestMapping路径与浏览器路径不一致
2、Spring-MVC配置文件中的<mvc:annotation-driven/>和<context:component-scan></context:component-scan>MVC必须在前
3、web.xml中,关于Spring和SpringMVC的xml文件路径是否和工程中所在位置一致(包名要写全)
4、注解配置是否有写(包括但不限于@Controller @RequestMapping...)