Class WebfluxErrorConfiguration
java.lang.Object
es.kukenan.smartfi.microservice.webfluxconfig.configuration.WebfluxErrorConfiguration
@Configuration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(org.springframework.web.reactive.config.WebFluxConfigurer.class)
@AutoConfigureBefore(org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class)
@EnableConfigurationProperties({org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.WebProperties.class})
@Import({ExceptionFormatterManager.class,WebfluxSecurityConfiguration.class})
public class WebfluxErrorConfiguration
extends Object
Errors configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.boot.autoconfigure.web.ServerPropertiesServer properties. -
Constructor Summary
ConstructorsConstructorDescriptionWebfluxErrorConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.reactive.error.DefaultErrorAttributesError attributes bean.org.springframework.boot.web.reactive.error.ErrorWebExceptionHandlererrorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties resourceProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer, org.springframework.context.ApplicationContext applicationContext, ExceptionFormatterManager exceptionFormatterManager) Exception handler bean.
-
Field Details
-
serverProperties
private final org.springframework.boot.autoconfigure.web.ServerProperties serverPropertiesServer properties.
-
-
Constructor Details
-
WebfluxErrorConfiguration
public WebfluxErrorConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) Constructor.- Parameters:
serverProperties- Server properties
-
-
Method Details
-
errorWebExceptionHandler
@Bean @Order(-2) public org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties resourceProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer, org.springframework.context.ApplicationContext applicationContext, ExceptionFormatterManager exceptionFormatterManager) Exception handler bean.- Parameters:
errorAttributes- Error attributesresourceProperties- Resource propertiesviewResolvers- View resolverserverCodecConfigurer- Server codec configurerapplicationContext- Application contextexceptionFormatterManager- Exception handler manager- Returns:
- the bean
-
errorAttributes
@Bean @Order(-2) public org.springframework.boot.web.reactive.error.DefaultErrorAttributes errorAttributes()Error attributes bean.- Returns:
- the bean
-