Deprecate ConfigurationProperties#location
Closes gh-5129
This commit is contained in:
parent
58e8e10abb
commit
b8dc4e74e4
|
@ -90,7 +90,9 @@ public @interface ConfigurationProperties {
|
|||
* defined in the environment.
|
||||
* @return the path (or paths) of resources to bind to
|
||||
* @see #merge()
|
||||
* @deprecated configure the environment with those additional locations instead
|
||||
*/
|
||||
@Deprecated
|
||||
String[] locations() default {};
|
||||
|
||||
/**
|
||||
|
@ -98,7 +100,9 @@ public @interface ConfigurationProperties {
|
|||
* merged with the default configuration.
|
||||
* @return the flag value (default true)
|
||||
* @see #locations()
|
||||
* @deprecated as {@link #locations()} is deprecated as well
|
||||
*/
|
||||
@Deprecated
|
||||
boolean merge() default true;
|
||||
|
||||
}
|
||||
|
|
|
@ -302,6 +302,7 @@ public class ConfigurationPropertiesBindingPostProcessor
|
|||
return bean;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void postProcessBeforeInitialization(Object bean, String beanName,
|
||||
ConfigurationProperties annotation) {
|
||||
Object target = bean;
|
||||
|
|
Loading…
Reference in New Issue