Class ErrorWebFluxAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration
@AutoConfiguration(before=WebFluxAutoConfiguration.class)
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(org.springframework.web.reactive.config.WebFluxConfigurer.class)
@EnableConfigurationProperties({ServerProperties.class,WebProperties.class})
public class ErrorWebFluxAutoConfiguration
extends Object
Auto-configuration
to render errors through a WebFlux
WebExceptionHandler
.- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.reactive.error.DefaultErrorAttributes
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
errorWebExceptionHandler
(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, 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)
-
Constructor Details
-
ErrorWebFluxAutoConfiguration
-
-
Method Details
-
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, 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) -
errorAttributes
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.reactive.error.ErrorAttributes.class, search=CURRENT) public org.springframework.boot.web.reactive.error.DefaultErrorAttributes errorAttributes()
-