Search in sources :

Example 1 with WebFluxResponseStatusExceptionHandler

use of org.springframework.web.reactive.handler.WebFluxResponseStatusExceptionHandler in project spring-framework by spring-projects.

the class DefaultHandlerStrategiesBuilder method defaultConfiguration.

public void defaultConfiguration() {
    this.codecConfigurer.registerDefaults(true);
    this.exceptionHandlers.add(new WebFluxResponseStatusExceptionHandler());
    this.localeContextResolver = new AcceptHeaderLocaleContextResolver();
}
Also used : WebFluxResponseStatusExceptionHandler(org.springframework.web.reactive.handler.WebFluxResponseStatusExceptionHandler) AcceptHeaderLocaleContextResolver(org.springframework.web.server.i18n.AcceptHeaderLocaleContextResolver)

Aggregations

WebFluxResponseStatusExceptionHandler (org.springframework.web.reactive.handler.WebFluxResponseStatusExceptionHandler)1 AcceptHeaderLocaleContextResolver (org.springframework.web.server.i18n.AcceptHeaderLocaleContextResolver)1