use of de.codecentric.boot.admin.web.PrefixHandlerMapping in project spring-boot-admin by codecentric.
the class AdminServerWebConfiguration method prefixHandlerMapping.
@Bean
public PrefixHandlerMapping prefixHandlerMapping() {
Map<String, Object> beans = applicationContext.getBeansWithAnnotation(AdminController.class);
PrefixHandlerMapping prefixHandlerMapping = new PrefixHandlerMapping(beans.values().toArray(new Object[beans.size()]));
prefixHandlerMapping.setPrefix(adminServerProperties.getContextPath());
return prefixHandlerMapping;
}
Aggregations