@Target(TYPE) @Retention(RUNTIME) @Repeatable(EncryptablePropertySources.class) @Import(EncryptablePropertySourceConfiguration.class) public @interface EncryptablePropertySource
PropertySourcePropertySource| Modifier and Type | Required Element | Description |
|---|---|---|
String[] |
value |
Indicate the resource location(s) of the properties file to be loaded.
|
| Modifier and Type | Optional Element | Description |
|---|---|---|
boolean |
ignoreResourceNotFound |
Indicate if failure to find the a
property resource should be
ignored. |
String |
name |
Indicate the name of this property source.
|
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.
String name
PropertySource.getName(),
Resource.getDescription()boolean ignoreResourceNotFound
property resource should be
ignored.
true is appropriate if the properties file is completely optional.
Default is false.
Copyright © 2018. All rights reserved.