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