diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NativeEnvironmentRepository.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NativeEnvironmentRepository.java index 2a9e8112..ba39c296 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NativeEnvironmentRepository.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NativeEnvironmentRepository.java @@ -220,7 +220,8 @@ public class NativeEnvironmentRepository map.put("spring.config.location", StringUtils.arrayToCommaDelimitedString( getLocations(application, profile, label).getLocations())); // globally ignore config files that are not found - map.put("spring.config.all-locations-optional", true); //TODO: remove old property + map.put("spring.config.all-locations-optional", true); // TODO: remove old + // property map.put("spring.config.on-location-not-found", "ignore"); environment.getPropertySources() .addFirst(new MapPropertySource("config-data-setup", map));