use of org.springframework.web.server.handler.ResponseStatusExceptionHandler in project spring-framework by spring-projects.
the class SimpleUrlHandlerMappingIntegrationTests method createHttpHandler.
@Override
protected HttpHandler createHttpHandler() {
AnnotationConfigApplicationContext wac = new AnnotationConfigApplicationContext();
wac.register(WebConfig.class);
wac.refresh();
return WebHttpHandlerBuilder.webHandler(new DispatcherHandler(wac)).exceptionHandlers(Collections.singletonList(new ResponseStatusExceptionHandler())).build();
}
Aggregations