@Target(value=TYPE) @Retention(value=RUNTIME) @Repeatable(value=EncryptablePropertySources.class) @Import(value=EncryptablePropertySourceConfiguration.class) public @interface EncryptablePropertySource
PropertySourcePropertySource| Modifier and Type | Required Element and Description |
|---|---|
String[] |
value
Indicate the resource location(s) of the properties file to be loaded.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
ignoreResourceNotFound
Indicate if failure to find the a
property resource should be
ignored. |
String |
name
Indicate the name of this property source.
|
public abstract String[] value
"classpath:/com/myco/app.properties" or
"file:/path/to/file".
Resource location wildcards (e.g. **/*.properties) are not permitted; each
location must evaluate to exactly one .properties resource.
${...} placeholders will be resolved against any/all property sources already
registered with the Environment. See above for
examples.
Each location will be added to the enclosing Environment as its own
property source, and in the order declared.
public abstract String name
PropertySource.getName(),
Resource.getDescription()public abstract boolean ignoreResourceNotFound
property resource should be
ignored.
true is appropriate if the properties file is completely optional.
Default is false.
Copyright © 2017. All rights reserved.