diff --git a/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java b/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java index ea42799dc..ca50b33a4 100644 --- a/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java +++ b/gravitee-node-management/src/main/java/io/gravitee/node/management/http/configuration/ConfigurationEndpoint.java @@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.AbstractEnvironment; -import org.springframework.core.env.PropertiesPropertySource; +import org.springframework.core.env.EnumerablePropertySource; /** * @author David BRASSELY (david.brassely at graviteesource.com) @@ -48,7 +48,7 @@ public class ConfigurationEndpoint implements ManagementEndpoint { private static final String ENDPOINT_PATH = "/configuration"; - private static final String PROPERTY_SOURCE_CONFIGURATION = "graviteeConfiguration"; + private static final String PROPERTY_SOURCE_CONFIGURATION = "graviteeYamlConfiguration"; @Autowired private AbstractEnvironment environment; @@ -71,7 +71,7 @@ public void handle(RoutingContext ctx) { response.setChunked(true); // Configuration is coming from gravitee.yml - PropertiesPropertySource nodeConfiguration = (PropertiesPropertySource) environment + EnumerablePropertySource nodeConfiguration = (EnumerablePropertySource) environment .getPropertySources() .get(PROPERTY_SOURCE_CONFIGURATION);