@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnProperty(name="spring.cloud.sentinel.enabled",
matchIfMissing=true)
@ConditionalOnClass(value=com.alibaba.csp.sentinel.adapter.spring.webmvc.SentinelWebInterceptor.class)
@EnableConfigurationProperties(value=SentinelProperties.class)
public class SentinelWebAutoConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| Constructor and Description |
|---|
SentinelWebAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
com.alibaba.csp.sentinel.adapter.spring.webmvc.SentinelWebInterceptor |
sentinelWebInterceptor(com.alibaba.csp.sentinel.adapter.spring.webmvc.config.SentinelWebMvcConfig sentinelWebMvcConfig) |
com.alibaba.csp.sentinel.adapter.spring.webmvc.config.SentinelWebMvcConfig |
sentinelWebMvcConfig() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean
@ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled",
matchIfMissing=true)
public com.alibaba.csp.sentinel.adapter.spring.webmvc.SentinelWebInterceptor sentinelWebInterceptor(com.alibaba.csp.sentinel.adapter.spring.webmvc.config.SentinelWebMvcConfig sentinelWebMvcConfig)
@Bean
@ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled",
matchIfMissing=true)
public com.alibaba.csp.sentinel.adapter.spring.webmvc.config.SentinelWebMvcConfig sentinelWebMvcConfig()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.