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 via a WebFlux
WebExceptionHandler
.- Since:
- 2.0.0
- Author:
- Brian Clozel, Scott Frederick
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorWebExceptionHandler
(ErrorAttributes errorAttributes, WebProperties webProperties, ObjectProvider<ViewResolver> viewResolvers, ServerCodecConfigurer serverCodecConfigurer, ApplicationContext applicationContext)
-
Constructor Details
-
ErrorWebFluxAutoConfiguration
-
-
Method Details
-
errorWebExceptionHandler
@Bean @ConditionalOnMissingBean(value=ErrorWebExceptionHandler.class, search=CURRENT) @Order(-1) public ErrorWebExceptionHandler errorWebExceptionHandler(ErrorAttributes errorAttributes, WebProperties webProperties, ObjectProvider<ViewResolver> viewResolvers, ServerCodecConfigurer serverCodecConfigurer, ApplicationContext applicationContext) -
errorAttributes
@Bean @ConditionalOnMissingBean(value=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes()
-