1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

code format

This commit is contained in:
fangjian0423 2019-01-04 12:36:09 +08:00
parent 1db45e85c4
commit 40f6290184
4 changed files with 6 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.springframework.cloud.alibaba.sentinel.datasource.RuleType;
import org.springframework.util.Assert;
import com.alibaba.csp.sentinel.datasource.AbstractDataSource;
import com.alibaba.csp.sentinel.slots.block.authority.AuthorityRuleManager;
@ -22,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
*/
public class AbstractDataSourceProperties {
@NotEmpty
@NotEmpty
private String dataType = "json";
@NotNull
private RuleType ruleType;

View File

@ -12,9 +12,9 @@ import org.springframework.cloud.alibaba.sentinel.datasource.factorybean.ApolloD
*/
public class ApolloDataSourceProperties extends AbstractDataSourceProperties {
@NotEmpty
@NotEmpty
private String namespaceName;
@NotEmpty
@NotEmpty
private String flowRulesKey;
private String defaultFlowRuleValue;

View File

@ -16,7 +16,7 @@ import org.springframework.util.StringUtils;
*/
public class FileDataSourceProperties extends AbstractDataSourceProperties {
@NotEmpty
@NotEmpty
private String file;
private String charset = "utf-8";
private long recommendRefreshMs = 3000L;

View File

@ -18,10 +18,10 @@ public class NacosDataSourceProperties extends AbstractDataSourceProperties {
private String serverAddr;
@NotEmpty
@NotEmpty
private String groupId;
@NotEmpty
@NotEmpty
private String dataId;
// commercialized usage