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 servlet

i 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 handlermappings , can see sorting them based on defined order.

otherwise falling on default handlermapping: beannameurlhandlermapping

java spring spring-mvc model-view-controller

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -