About 404 SpringMVC summary

404 defined on the Web is: You can not find the resources. This is the most explicit error.

But in springmvc the common mistakes:

1, the back-end: no automatic scanning corresponding resource gotten involved, this springmvc see profile

 <Context: component-scan> portion


2, the front end: request the wrong format. If parameters need to pass a json string, but if it will pass null 404

  Resolution: The incoming empty string {}


3, the front end: the request wrong path. This is very easy to find


4, items not released successfully. If the machine is not to force deployed after adding items, the following progress bar has been loaded, then do not worry, be feasible to wait after 100%.


The actual problems are encountered above.


Published 29 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/yangleiGJ/article/details/77849336