类 GatewayAutoConfigure
java.lang.Object
cn.bbwres.biscuit.gateway.GatewayAutoConfigure
@AutoConfiguration
@EnableConfigurationProperties(GatewayProperties.class)
public class GatewayAutoConfigure
extends Object
网关鉴权 自动注入配置
- 版本:
- $Id: $Id
- 作者:
- zhanglinfeng
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明errorAttributes(GatewayProperties gatewayProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messagesProvider) gateway 统一错误处理errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties webProperties, org.springframework.context.ApplicationContext applicationContext) 统一错误处理器routerController(org.springframework.cloud.gateway.route.RouteLocator routeLocator) 路由控制器org.springframework.web.server.session.WebSessionManager空的SessionManager
-
构造器详细资料
-
GatewayAutoConfigure
public GatewayAutoConfigure()
-
-
方法详细资料
-
errorAttributes
@Bean public ExtensionErrorAttributes errorAttributes(GatewayProperties gatewayProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messagesProvider) gateway 统一错误处理- 参数:
gatewayProperties- aGatewayPropertiesobjectmessagesProvider- aObjectProviderobject- 返回:
- a
ExtensionErrorAttributesobject
-
errorWebExceptionHandler
@Bean public ErrorWebExceptionHandler errorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties webProperties, org.springframework.context.ApplicationContext applicationContext) 统一错误处理器- 参数:
errorAttributes- aErrorAttributesobjectwebProperties- aWebPropertiesobjectapplicationContext- aApplicationContextobject- 返回:
- a
ErrorWebExceptionHandlerobject
-
webSessionManager
@Bean @ConditionalOnProperty(prefix="biscuit.gateway", name="session", havingValue="false", matchIfMissing=true) public org.springframework.web.server.session.WebSessionManager webSessionManager()空的SessionManager- 返回:
- a
WebSessionManagerobject
-
routerController
@Bean public RouterController routerController(org.springframework.cloud.gateway.route.RouteLocator routeLocator) 路由控制器- 参数:
routeLocator- aRouteLocatorobject- 返回:
- a
RouterControllerobject
-