customizing spring 3 mvc:annotation for RequestMappingHandlerMapping
I am using <mvc:annotation-driven/> and I would like to configure RequestMappingHandlerMapping for disabling useTrailingSlashMatch . When I declare another RequestMappingHandlerMapping, I will end up 2 RequestMappingHandlerMapping . How can I configure RequestMappingHandlerMapping ? As you have already noted, this is feasible in xml by removing mvc:annotation-driven and replacing with the entire xml equivalent: <bean name="handlerAdapter" class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"> <property name="webBindingInitializer"> <bean class="org