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

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.boot.autoconfigure.web.ServerProperties
    Server properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebfluxErrorConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.web.reactive.error.DefaultErrorAttributes
    Error attributes bean.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serverProperties

      private final org.springframework.boot.autoconfigure.web.ServerProperties serverProperties
      Server 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 attributes
      resourceProperties - Resource properties
      viewResolvers - View resolver
      serverCodecConfigurer - Server codec configurer
      applicationContext - Application context
      exceptionFormatterManager - 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