use of org.springframework.web.servlet.mvc.Controller in project cas by apereo.
the class CasWebAppConfiguration method handlerMapping.
@Bean
public SimpleUrlHandlerMapping handlerMapping() {
final SimpleUrlHandlerMapping mapping = new SimpleUrlHandlerMapping();
final Controller root = rootController();
mapping.setOrder(1);
mapping.setAlwaysUseFullPath(true);
mapping.setRootHandler(root);
final Map urls = new HashMap();
urls.put("/", root);
mapping.setUrlMap(urls);
return mapping;
}
Aggregations