|
|
|
@ -55,11 +55,6 @@ public class NacosConfigProperties {
|
|
|
|
|
private static final Logger log = LoggerFactory
|
|
|
|
|
.getLogger(NacosConfigProperties.class);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* whether to enable nacos config.
|
|
|
|
|
*/
|
|
|
|
|
private boolean enabled = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* nacos config server address
|
|
|
|
|
*/
|
|
|
|
@ -140,19 +135,8 @@ public class NacosConfigProperties {
|
|
|
|
|
|
|
|
|
|
private ConfigService configService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private Environment environment;
|
|
|
|
|
|
|
|
|
|
// todo sts support
|
|
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
|
return enabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setEnabled(boolean enabled) {
|
|
|
|
|
this.enabled = enabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getServerAddr() {
|
|
|
|
|
return serverAddr;
|
|
|
|
|
}
|
|
|
|
@ -322,16 +306,15 @@ public class NacosConfigProperties {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "NacosConfigProperties{" + "enabled=" + enabled + ", serverAddr='"
|
|
|
|
|
+ serverAddr + '\'' + ", encode='" + encode + '\'' + ", group='" + group
|
|
|
|
|
+ '\'' + ", prefix='" + prefix + '\'' + ", fileExtension='"
|
|
|
|
|
+ fileExtension + '\'' + ", timeout=" + timeout + ", endpoint='"
|
|
|
|
|
+ endpoint + '\'' + ", namespace='" + namespace + '\'' + ", accessKey='"
|
|
|
|
|
+ accessKey + '\'' + ", secretKey='" + secretKey + '\''
|
|
|
|
|
+ ", contextPath='" + contextPath + '\'' + ", clusterName='" + clusterName
|
|
|
|
|
+ '\'' + ", name='" + name + '\'' + ", sharedDataids='" + sharedDataids
|
|
|
|
|
+ '\'' + ", refreshableDataids='" + refreshableDataids + '\''
|
|
|
|
|
+ ", extConfig=" + extConfig + '}';
|
|
|
|
|
return "NacosConfigProperties{" + "serverAddr='" + serverAddr + '\''
|
|
|
|
|
+ ", encode='" + encode + '\'' + ", group='" + group + '\'' + ", prefix='"
|
|
|
|
|
+ prefix + '\'' + ", fileExtension='" + fileExtension + '\''
|
|
|
|
|
+ ", timeout=" + timeout + ", endpoint='" + endpoint + '\''
|
|
|
|
|
+ ", namespace='" + namespace + '\'' + ", accessKey='" + accessKey + '\''
|
|
|
|
|
+ ", secretKey='" + secretKey + '\'' + ", contextPath='" + contextPath
|
|
|
|
|
+ '\'' + ", clusterName='" + clusterName + '\'' + ", name='" + name + '\''
|
|
|
|
|
+ ", sharedDataids='" + sharedDataids + '\'' + ", refreshableDataids='"
|
|
|
|
|
+ refreshableDataids + '\'' + ", extConfig=" + extConfig + '}';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ConfigService configServiceInstance() {
|
|
|
|
|