Set a default non-null value as a service name is KubernetesDiscoveryProperties.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user