Change getProperty method in order to set the target type (#521)
This commit is contained in:
committed by
GitHub
parent
ac597937f0
commit
41b5ea40f1
@@ -43,9 +43,9 @@ public class KubernetesProfileEnvironmentPostProcessor
|
||||
public void postProcessEnvironment(ConfigurableEnvironment environment,
|
||||
SpringApplication application) {
|
||||
|
||||
final String enabledStr = environment
|
||||
.getProperty("spring.cloud.kubernetes.enabled", "true");
|
||||
if ("false".equals(enabledStr.toLowerCase())) {
|
||||
final boolean kubernetesEnabled = environment
|
||||
.getProperty("spring.cloud.kubernetes.enabled", Boolean.class, true);
|
||||
if (!kubernetesEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user