类 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
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 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)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.boot.web.reactive.error.DefaultErrorAttributes
errorAttributes()
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
构造器详细资料
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)
方法详细资料
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()