@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(value=com.alibaba.csp.sentinel.adapter.reactor.SentinelReactorTransformer.class)
@ConditionalOnProperty(name="spring.cloud.sentinel.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=SentinelProperties.class)
public class SentinelWebFluxAutoConfiguration
extends Object
| 构造器和说明 |
|---|
SentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers,
org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
init() |
com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler |
sentinelBlockExceptionHandler() |
com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter |
sentinelWebFluxFilter() |
public SentinelWebFluxAutoConfiguration(org.springframework.beans.factory.ObjectProvider<List<org.springframework.web.reactive.result.view.ViewResolver>> viewResolvers, org.springframework.http.codec.ServerCodecConfigurer serverCodecConfigurer)
@PostConstruct public void init()
@Bean
@Order(value=-2)
@ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled",
matchIfMissing=true)
public com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler sentinelBlockExceptionHandler()
@Bean
@Order(value=-1)
@ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled",
matchIfMissing=true)
public com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter sentinelWebFluxFilter()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.