@Configuration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(value=org.springframework.web.reactive.config.WebFluxConfigurer.class)
@AutoConfigureBefore(value=org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class)
@EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.WebProperties.class})
public class CustomErrorConfig
extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private org.springframework.boot.autoconfigure.web.ServerProperties |
serverProperties |
| 构造器和说明 |
|---|
CustomErrorConfig(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.boot.web.reactive.error.DefaultErrorAttributes |
errorAttributes() |
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler |
errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes,
org.springframework.boot.autoconfigure.web.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) |
private final org.springframework.boot.autoconfigure.web.ServerProperties serverProperties
public CustomErrorConfig(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
@Bean
@Order(value=-1)
public org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes,
org.springframework.boot.autoconfigure.web.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()
Copyright © 2021. All rights reserved.