@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(value=org.springframework.web.reactive.config.WebFluxConfigurer.class) @AutoConfigureBefore(value=WebFluxAutoConfiguration.class) @EnableConfigurationProperties(value={ServerProperties.class,ResourceProperties.class,WebProperties.class}) public class ErrorWebFluxAutoConfiguration extends java.lang.Object
Auto-configuration to render errors via a WebFlux
WebExceptionHandler.| Constructor and Description |
|---|
ErrorWebFluxAutoConfiguration(ServerProperties serverProperties) |
| Modifier and Type | Method and 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,
ResourceProperties resourceProperties,
WebProperties webProperties,
org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolvers,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer,
org.springframework.context.ApplicationContext applicationContext) |
public ErrorWebFluxAutoConfiguration(ServerProperties serverProperties)
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler.class, search=CURRENT) @Order(value=-1) public org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, ResourceProperties resourceProperties, WebProperties webProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.result.view.ViewResolver> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer, org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.reactive.error.ErrorAttributes.class, search=CURRENT) public org.springframework.boot.web.reactive.error.DefaultErrorAttributes errorAttributes()