Package com.alibaba.cloud.sentinel
Class SentinelWebAutoConfiguration
java.lang.Object
com.alibaba.cloud.sentinel.SentinelWebAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnProperty(name="spring.cloud.sentinel.enabled",
matchIfMissing=true)
@ConditionalOnClass(com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.SentinelWebInterceptor.class)
@EnableConfigurationProperties(SentinelProperties.class)
public class SentinelWebAutoConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Author:
- xiaojing, yuhuangbin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.SentinelWebInterceptorsentinelWebInterceptor(com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.config.SentinelWebMvcConfig sentinelWebMvcConfig) com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.config.SentinelWebMvcConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
SentinelWebAutoConfiguration
public SentinelWebAutoConfiguration()
-
-
Method Details
-
sentinelWebInterceptor
@Bean @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.SentinelWebInterceptor sentinelWebInterceptor(com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.config.SentinelWebMvcConfig sentinelWebMvcConfig) -
sentinelWebMvcConfig
@Bean @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.config.SentinelWebMvcConfig sentinelWebMvcConfig() -
sentinelWebMvcConfigurer
@Bean @ConditionalOnProperty(name="spring.cloud.sentinel.filter.enabled", matchIfMissing=true) public SentinelWebMvcConfigurer sentinelWebMvcConfigurer()
-