@Configuration
@ConditionalOnProperty(name="spring.cloud.sentinel.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=SentinelProperties.class)
public class SentinelAutoConfiguration
extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SentinelAutoConfiguration.SentinelConverterConfiguration |
protected static class |
SentinelAutoConfiguration.SentinelXmlConfiguration |
| Constructor and Description |
|---|
SentinelAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SentinelBeanPostProcessor |
sentinelBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext) |
SentinelDataSourceHandler |
sentinelDataSourceHandler(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect |
sentinelResourceAspect() |
@Bean @ConditionalOnMissingBean public com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect sentinelResourceAspect()
@Bean
@ConditionalOnMissingBean
@ConditionalOnClass(name="org.springframework.web.client.RestTemplate")
@ConditionalOnProperty(name="resttemplate.sentinel.enabled",
havingValue="true",
matchIfMissing=true)
public SentinelBeanPostProcessor sentinelBeanPostProcessor(org.springframework.context.ApplicationContext applicationContext)
@Bean public SentinelDataSourceHandler sentinelDataSourceHandler(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.