Class ErrorWebFluxAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration
@Configuration @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(org.springframework.web.reactive.config.WebFluxConfigurer.class) @AutoConfigureBefore(WebFluxAutoConfiguration.class) @EnableConfigurationProperties({ServerProperties.class,ResourceProperties.class}) public class ErrorWebFluxAutoConfiguration extends Object
Auto-configuration
to render errors via a WebFluxWebExceptionHandler
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description ErrorWebFluxAutoConfiguration(ServerProperties serverProperties, ResourceProperties resourceProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolversProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer, org.springframework.context.ApplicationContext applicationContext)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.web.reactive.error.DefaultErrorAttributes
errorAttributes()
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
Constructor Detail
ErrorWebFluxAutoConfiguration
public ErrorWebFluxAutoConfiguration(ServerProperties serverProperties, ResourceProperties resourceProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolversProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer, org.springframework.context.ApplicationContext applicationContext)
Method Detail
errorWebExceptionHandler
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler.class, search=CURRENT) @Order(-1) public org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
errorAttributes
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.reactive.error.ErrorAttributes.class, search=CURRENT) public org.springframework.boot.web.reactive.error.DefaultErrorAttributes errorAttributes()