mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
✨ Introducing new features. Sentinel Support ConsulDataSource Dynamic Rule Configuration
fix checkstyle error
This commit is contained in:
parent
7b06f44ee4
commit
08ba076a42
@ -17,6 +17,7 @@
|
|||||||
package com.alibaba.cloud.sentinel.datasource.config;
|
package com.alibaba.cloud.sentinel.datasource.config;
|
||||||
|
|
||||||
import com.alibaba.cloud.sentinel.datasource.factorybean.ConsulDataSourceFactoryBean;
|
import com.alibaba.cloud.sentinel.datasource.factorybean.ConsulDataSourceFactoryBean;
|
||||||
|
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,12 +33,12 @@ public class ConsulDataSourceProperties extends AbstractDataSourceProperties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* consul server host
|
* consul server host.
|
||||||
*/
|
*/
|
||||||
private String host;
|
private String host;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* consul server port
|
* consul server port.
|
||||||
*/
|
*/
|
||||||
private int port=8500;
|
private int port=8500;
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ package com.alibaba.cloud.sentinel.datasource.factorybean;
|
|||||||
|
|
||||||
import com.alibaba.csp.sentinel.datasource.Converter;
|
import com.alibaba.csp.sentinel.datasource.Converter;
|
||||||
import com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource;
|
import com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource;
|
||||||
|
|
||||||
import org.springframework.beans.factory.FactoryBean;
|
import org.springframework.beans.factory.FactoryBean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,4 +3,4 @@ file =com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource
|
|||||||
apollo = com.alibaba.csp.sentinel.datasource.apollo.ApolloDataSource
|
apollo = com.alibaba.csp.sentinel.datasource.apollo.ApolloDataSource
|
||||||
zk = com.alibaba.csp.sentinel.datasource.zookeeper.ZookeeperDataSource
|
zk = com.alibaba.csp.sentinel.datasource.zookeeper.ZookeeperDataSource
|
||||||
redis = com.alibaba.csp.sentinel.datasource.redis.RedisDataSource
|
redis = com.alibaba.csp.sentinel.datasource.redis.RedisDataSource
|
||||||
consul = com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource
|
consul = com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource
|
||||||
|
Loading…
x
Reference in New Issue
Block a user