@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value=org.springframework.cloud.gateway.filter.GlobalFilter.class)
@ConditionalOnProperty(prefix="spring.cloud.sentinel.scg",
name="enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(value=SentinelGatewayProperties.class)
public class SentinelSCGAutoConfiguration
extends Object
| Constructor and Description |
|---|
SentinelSCGAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer) |
| Modifier and Type | Method and Description |
|---|---|
com.alibaba.csp.sentinel.adapter.gateway.sc.exception.SentinelGatewayBlockExceptionHandler |
sentinelGatewayBlockExceptionHandler() |
com.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter |
sentinelGatewayFilter() |
public SentinelSCGAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
@Bean @Order(value=-2147483648) @ConditionalOnMissingBean public com.alibaba.csp.sentinel.adapter.gateway.sc.exception.SentinelGatewayBlockExceptionHandler sentinelGatewayBlockExceptionHandler()
@Bean @Order(value=-1) @ConditionalOnMissingBean public com.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter sentinelGatewayFilter()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.