diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java index 223fdb65c83..0028ea71de3 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java @@ -185,7 +185,7 @@ class ConfigurationClassParser { throw new IllegalArgumentException("At least one @PropertySource(value) location is required"); } for (int i = 0; i < nLocations; i++) { - locations[0] = this.environment.resolveRequiredPlaceholders(locations[0]); + locations[i] = this.environment.resolveRequiredPlaceholders(locations[i]); } ClassLoader classLoader = this.resourceLoader.getClassLoader(); if (!StringUtils.hasText(name)) {