Commit 858b9f2a authored by 周健威's avatar 周健威

修改代码

parent 1bbcf8b9
......@@ -17,7 +17,7 @@ import java.util.Map;
* @version v1.0
*/
@RefreshScope
@FeignClient(name = "RscloudboxClientRest", url = "${rscloudbox.client.ip}")
@FeignClient(name = "RscloudboxClientRest", url = "${rscloudbox.clientip}")
public interface RscloudboxClientRest {
/**
......
package com.upyuns.platform.rs.datacenter.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
@Component
@RefreshScope
@ConfigurationProperties(prefix = "rscloudbox")
public class RscloudboxNacosConf {
private String clientip;
public String getClientip() {
return clientip;
}
public void setClientip(String clientip) {
this.clientip = clientip;
}
}
\ No newline at end of file
......@@ -32,6 +32,5 @@ spring:
#共用配置,暂定一个
shared-dataids: common-dev.yaml
namespace: rs-cloud-platform
rscloudbox:
client:
ip: http://127.0.0.1:8090
\ No newline at end of file
#rscloudbox:
# clientip: http://127.0.0.1:8090
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment