@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 |
|---|---|
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() |
SentinelWebMvcConfigurer |
sentinelWebMvcConfigurer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@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()
@Bean
@ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled",
matchIfMissing=true)
public SentinelWebMvcConfigurer sentinelWebMvcConfigurer()
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.