Error:
Org.springframework.web.servlet.pagenotfound nohandlerfound warning: no mapping found for HTTP request with URI
Reason:
1. The corresponding control layer package is com.hillsoft.controller, which is written in spring-mvc.xml as & lt; context:component-scan base-package= “com.hillsoft.*.controller”> , The middle * No, it should be com.hillsoft.controller
If the control layer package is similar to com.hillsoft.system manage.controller and there are multiple system manage in the middle, then com.hillsoft. *. Controller can be used
2. Configure the URL pattern intercepted by spring MVC in web.xml, preferably in the control layer, such as & lt; url-pattern>*. action</ url-pattern> Or *. Do, add @ request mapping (“/ login”) to the controller class method, then login.action can be used in the requested place, such as the action of the form
Similar Posts:
- Error 404 when accessing pictures in the project directory
- How to Solve Error: Preflight response is not successful
- [LeetCode] 291. Word Pattern II
- Struts 2.0 Error: The Struts dispatcher cannot be found (Error 500 Internal Server Error)
- Spring MVC: How to Solve Chinese garbled code Issue
- This application has no explicit mapping for /error, so you are seeing this as a fallback
- [Solved] Spring Error: Artifact spring:war exploded: Error during artifact deployment. See server log for details
- How to Solve Error: The content of element type “web-app” must match “(icon?display
- [Solved] com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes
- Browser Console Error: Failed to load resource: the server responded with a status of 404()