Remove @Value annotation from classed annotated with @ConfigurationProperties annotation

pull/425/head
DerekYRC 3 years ago
parent af79e98c27
commit 00db1730a9

@ -54,6 +54,9 @@ public class PolarisDiscoveryProperties {
}
}
port = environment.containsProperty("server.port") ? Integer.valueOf(environment.getProperty("server.port")) : 8080;
if (StringUtils.isEmpty(namespace)) {
namespace = environment.containsProperty("spring.cloud.polaris.namespace") ? environment.getProperty("spring.cloud.polaris.namespace") : "default";
}
}
/**

Loading…
Cancel
Save