use of cn.taketoday.web.registry.HandlerRegistries in project today-framework by TAKETODAY.
the class WebApplicationLoader method configureHandlerRegistry.
protected void configureHandlerRegistry(List<HandlerRegistry> registries, WebMvcConfiguration mvcConfiguration) {
DispatcherHandler obtainDispatcher = obtainDispatcher();
HandlerRegistry handlerRegistry = obtainDispatcher.getHandlerRegistry();
if (handlerRegistry != null) {
registries.add(handlerRegistry);
}
// 自定义
mvcConfiguration.configureHandlerRegistry(registries);
obtainDispatcher.setHandlerRegistry(registries.size() == 1 ? registries.get(0) : new HandlerRegistries(registries));
}
Aggregations