Class SentinelSCGAutoConfiguration
java.lang.Object
com.alibaba.cloud.sentinel.gateway.scg.SentinelSCGAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.springframework.cloud.gateway.filter.GlobalFilter.class)
@ConditionalOnProperty(prefix="spring.cloud.sentinel.scg",
name="enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(SentinelGatewayProperties.class)
public class SentinelSCGAutoConfiguration
extends Object
- Author:
- Jim
-
Constructor Summary
ConstructorsConstructorDescriptionSentinelSCGAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()com.alibaba.csp.sentinel.adapter.gateway.sc.exception.SentinelGatewayBlockExceptionHandlercom.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter
-
Constructor Details
-
SentinelSCGAutoConfiguration
public SentinelSCGAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolversProvider, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
-
-
Method Details
-
init
@PostConstruct public void init() -
sentinelGatewayBlockExceptionHandler
@Bean @Order(-2147483648) @ConditionalOnMissingBean public com.alibaba.csp.sentinel.adapter.gateway.sc.exception.SentinelGatewayBlockExceptionHandler sentinelGatewayBlockExceptionHandler() -
sentinelGatewayFilter
@Bean @Order(-1) @ConditionalOnMissingBean public com.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter sentinelGatewayFilter()
-