@EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.ResourceProperties.class})
public class ErrorHandlerConfiguration
extends Object
| 构造器和说明 |
|---|
ErrorHandlerConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties,
org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer,
org.springframework.context.ApplicationContext applicationContext)
Instantiates a new Error handler configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler |
errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
Error web exception handler error web exception handler.
|
org.springframework.web.filter.reactive.HiddenHttpMethodFilter |
hiddenHttpMethodFilter()
https://github.com/spring-cloud/spring-cloud-gateway/issues/541
Hidden http method filter hidden http method filter.
|
public ErrorHandlerConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties,
org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer,
org.springframework.context.ApplicationContext applicationContext)
serverProperties - the server propertiesresourceProperties - the resource propertiesviewResolversProvider - the view resolvers providerserverCodecConfigurer - the server codec configurerapplicationContext - the application context@Bean @Order(value=-2147483648) public org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
errorAttributes - the error attributes@Bean public org.springframework.web.filter.reactive.HiddenHttpMethodFilter hiddenHttpMethodFilter()
Copyright © 2019 dromara. All rights reserved.