java - is default handler mapping is overridden when we create custom handler mapping in spring mvc? -
I want to know that we have been created by custom handler mapping spring MVC framework override if we make our custom handler mapping. I suspect because I have created custom handler mapping in two projects in the same
- Binnamehandler Mapping
- SimpleUrlHandlerMapping has been injected into the Dispatcher Servlet but in each other the dispatcher Not registered in servlet
I am using different versions of the Spring 3 framework for these two projects because of the version change in Spring 3
me The default handler mapping is not found in Saint 3.0, but the higher version is getting in the
thanks
your custom handler mapping
so that it has other registered handler mapping.
Explanation
Detect handler mapping available in the web context DispatcherServlet
is a part of initialization:
this way, all registered handler mapping
and as you can see that they have been sorted by their determined order
Otherwise, Mapping is falling back to the default handler: BeanNameUrlHandlerMappin G
Comments
Post a Comment