类 GatewayAutoConfigure

java.lang.Object
cn.bbwres.biscuit.gateway.GatewayAutoConfigure

@AutoConfiguration @EnableConfigurationProperties(GatewayProperties.class) public class GatewayAutoConfigure extends Object
网关鉴权 自动注入配置
版本:
$Id: $Id
作者:
zhanglinfeng
  • 构造器详细资料

    • GatewayAutoConfigure

      public GatewayAutoConfigure()
  • 方法详细资料

    • errorAttributes

      @Bean public ExtensionErrorAttributes errorAttributes(GatewayProperties gatewayProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messagesProvider)
      gateway 统一错误处理
      参数:
      gatewayProperties - a GatewayProperties object
      messagesProvider - a ObjectProvider object
      返回:
      a ExtensionErrorAttributes object
    • 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 - a ErrorAttributes object
      webProperties - a WebProperties object
      applicationContext - a ApplicationContext object
      返回:
      a ErrorWebExceptionHandler object
    • webSessionManager

      @Bean @ConditionalOnProperty(prefix="biscuit.gateway", name="session", havingValue="false", matchIfMissing=true) public org.springframework.web.server.session.WebSessionManager webSessionManager()
      空的SessionManager
      返回:
      a WebSessionManager object
    • routerController

      @Bean public RouterController routerController(org.springframework.cloud.gateway.route.RouteLocator routeLocator)
      路由控制器
      参数:
      routeLocator - a RouteLocator object
      返回:
      a RouterController object