@EnableAopLogController @Configuration @ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnClass(value=org.springframework.web.reactive.config.WebFluxConfigurer.class) @AutoConfigureBefore(value={org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration.class}) @EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.ResourceProperties.class}) public class ErrorWebFluxAutoConfiguration extends Object
Auto-configuration to render errors via a WebFlux
WebExceptionHandler.ErrorWebFluxAutoConfiguration| Constructor and Description |
|---|
ErrorWebFluxAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.boot.autoconfigure.web.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) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler |
errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes) |
public ErrorWebFluxAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.boot.autoconfigure.web.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)
@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)
Copyright © 2018–2019. All rights reserved.