Set a default non-null value as a service name is KubernetesDiscoveryProperties.

This commit is contained in:
Ioannis Canellos
2016-04-05 12:48:27 +03:00
parent 6885334ba5
commit 0cde76dd40

View File

@@ -22,8 +22,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class KubernetesDiscoveryProperties {
private boolean enabled = true;
private String serviceName;
private String serviceName = "unknown";
public boolean isEnabled() {
return enabled;