Package com.alibaba.cloud.sentinel
Class SentinelWebFluxAutoConfiguration
java.lang.Object
com.alibaba.cloud.sentinel.SentinelWebFluxAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(com.alibaba.csp.sentinel.adapter.reactor.SentinelReactorTransformer.class)
@ConditionalOnProperty(name="spring.cloud.sentinel.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(SentinelProperties.class)
public class SentinelWebFluxAutoConfiguration
extends Object
- Author:
- Jim
-
Constructor Summary
ConstructorsConstructorDescriptionSentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandlercom.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter
-
Constructor Details
-
SentinelWebFluxAutoConfiguration
public SentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
-
-
Method Details
-
init
@PostConstruct public void init() -
sentinelBlockExceptionHandler
@Bean @Order(-2) @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler sentinelBlockExceptionHandler() -
sentinelWebFluxFilter
@Bean @Order(-1) @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter sentinelWebFluxFilter()
-