Search in sources :

Example 1 with ExtendedRequestMappingHandlerMapping

use of org.springframework.samples.mvc31.requestcondition.mvc.ExtendedRequestMappingHandlerMapping in project spring-mvc-31-demo by rstoyanchev.

the class WebConfig method requestMappingHandlerMapping.

// Configuration for custom @RequestMapping condition
// See ~.requestcondition package
@Override
@Bean
public RequestMappingHandlerMapping requestMappingHandlerMapping() {
    RequestMappingHandlerMapping handlerMapping = new ExtendedRequestMappingHandlerMapping();
    handlerMapping.setOrder(0);
    handlerMapping.setInterceptors(getInterceptors());
    return handlerMapping;
}
Also used : ExtendedRequestMappingHandlerMapping(org.springframework.samples.mvc31.requestcondition.mvc.ExtendedRequestMappingHandlerMapping) ExtendedRequestMappingHandlerMapping(org.springframework.samples.mvc31.requestcondition.mvc.ExtendedRequestMappingHandlerMapping) RequestMappingHandlerMapping(org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 ExtendedRequestMappingHandlerMapping (org.springframework.samples.mvc31.requestcondition.mvc.ExtendedRequestMappingHandlerMapping)1 RequestMappingHandlerMapping (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping)1