You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java
+7-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2024 the original author or authors.
2
+
* Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@
49
49
* XSD documentation for complete details.
50
50
*
51
51
* <p>Any local properties (for example, those added via {@link #setProperties}, {@link #setLocations}
52
-
* et al.) are added as a {@code PropertySource}. Search precedence of local properties is
52
+
* et al.) are added as a single {@link PropertySource}. Search precedence of local properties is
53
53
* based on the value of the {@link #setLocalOverride localOverride} property, which is by
54
54
* default {@code false} meaning that local properties are to be searched last, after all
55
55
* environment property sources.
@@ -101,8 +101,9 @@ public void setPropertySources(PropertySources propertySources) {
101
101
}
102
102
103
103
/**
104
-
* {@code PropertySources} from the given {@link Environment}
105
-
* will be searched when replacing ${...} placeholders.
104
+
* {@inheritDoc}
105
+
* <p>{@code PropertySources} from the given {@link Environment} will be searched
106
+
* when replacing ${...} placeholders.
106
107
* @see #setPropertySources
107
108
* @see #postProcessBeanFactory
108
109
*/
@@ -176,6 +177,7 @@ public String getProperty(String key) {
176
177
177
178
/**
178
179
* Create a {@link ConfigurablePropertyResolver} for the specified property sources.
180
+
* <p>The default implementation creates a {@link PropertySourcesPropertyResolver}.
179
181
* @param propertySources the property sources to use
0 commit comments