Skip to content

Commit

Permalink
[SCB-2813]fix config value error
Browse files Browse the repository at this point in the history
  • Loading branch information
liubao68 committed Oct 23, 2023
1 parent d9d18c5 commit 254c432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class NacosConfig {

public static final String PROPERTY_USERNAME = "servicecomb.nacos.username";

public static final String PROPERTY_PASSWORD = "servicecomb.nacos.username";
public static final String PROPERTY_PASSWORD = "servicecomb.nacos.password";

public static final String PROPERTY_ACCESS_KEY = "servicecomb.nacos.accessKey";

Expand All @@ -57,7 +57,7 @@ public NacosConfig(Environment environment) {
}

public String getServerAddr() {
return environment.getProperty(PROPERTY_SERVER_ADDR);
return environment.getProperty(PROPERTY_SERVER_ADDR, "http://127.0.0.1:8848");
}

public String getDataId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class NacosDiscoveryProperties {
private boolean enabled = true;

private String serverAddr = "127.0.0.1";
private String serverAddr = "http://127.0.0.1:8848";

private Map<String, String> metadata = new HashMap<>();

Expand Down

0 comments on commit 254c432

Please sign in to comment.