|
@@ -17,8 +17,6 @@ package com.alibaba.csp.sentinel.dashboard.config; |
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Configurable; |
|
|
import org.springframework.beans.factory.annotation.Configurable; |
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
import lombok.Getter; |
|
|
|
|
|
import lombok.Setter; |
|
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@@ -29,17 +27,40 @@ import org.springframework.stereotype.Component; |
|
|
@ConfigurationProperties(prefix="sentinel.nacos") |
|
|
@ConfigurationProperties(prefix="sentinel.nacos") |
|
|
public class NacosPropertiesConfiguration { |
|
|
public class NacosPropertiesConfiguration { |
|
|
|
|
|
|
|
|
@Getter |
|
|
|
|
|
@Setter |
|
|
|
|
|
private String serverAddr; |
|
|
private String serverAddr; |
|
|
@Getter |
|
|
|
|
|
@Setter |
|
|
|
|
|
private String dataId; |
|
|
private String dataId; |
|
|
@Getter |
|
|
|
|
|
@Setter |
|
|
|
|
|
private String groupId; |
|
|
private String groupId; |
|
|
@Getter |
|
|
|
|
|
@Setter |
|
|
|
|
|
private String namespace; |
|
|
private String namespace; |
|
|
|
|
|
|
|
|
|
|
|
public String getServerAddr() { |
|
|
|
|
|
return serverAddr; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getDataId() { |
|
|
|
|
|
return dataId; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getGroupId() { |
|
|
|
|
|
return groupId; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getNamespace() { |
|
|
|
|
|
return namespace; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setServerAddr(String serverAddr) { |
|
|
|
|
|
this.serverAddr = serverAddr; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setDataId(String dataId) { |
|
|
|
|
|
this.dataId = dataId; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setGroupId(String groupId) { |
|
|
|
|
|
this.groupId = groupId; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setNamespace(String namespace) { |
|
|
|
|
|
this.namespace = namespace; |
|
|
|
|
|
} |
|
|
} |
|
|
} |