java - is default handler mapping is overridden when we create custom handler mapping in spring mvc? -
java - is default handler mapping is overridden when we create custom handler mapping in spring mvc? -
i want know default handler mapping created spring mvc framework override if create our custom handler mapping. have uncertainty because created custom handler mapping in 2 projects in 1
beannamehandlermapping simpleurlhandlermapping injected in dispatcher servlet in 1 these not registered in dispatcher servleti using different version of spring 3 framework these 2 project. because of version alter in spring 3
i not getting default handler mapping in spring 3.0 getting in spring 3 higher version
thanks
specify order of custom handlermapping
have lowest int value gets tried first on other registered handlermappings.
explanation
figuring out available handlermappings in web context part of dispatcherservlet
initialisation:
that method, discovering registered handlermapping
s , can see sorting them based on defined order.
otherwise falling on default handlermapping: beannameurlhandlermapping
java spring spring-mvc model-view-controller
Comments
Post a Comment