Consumer methods for WebHttpHandlerBuilder
Replace the more limited List-based methods to add filtes and exception handlers with Consumer<List<?>> variants.
This commit is contained in:
@@ -63,7 +63,7 @@ public class SimpleUrlHandlerMappingIntegrationTests extends AbstractHttpHandler
|
||||
wac.refresh();
|
||||
|
||||
return WebHttpHandlerBuilder.webHandler(new DispatcherHandler(wac))
|
||||
.exceptionHandlers(Collections.singletonList(new ResponseStatusExceptionHandler()))
|
||||
.exceptionHandler(new ResponseStatusExceptionHandler())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user