Annotation Type EncryptablePropertySource
-
@Target(TYPE) @Retention(RUNTIME) @Repeatable(EncryptablePropertySources.class) @Import(EncryptablePropertySourceConfiguration.class) public @interface EncryptablePropertySource
Encryptable version of SpringPropertySource- Author:
- Ulises Bocchio
- See Also:
PropertySource
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanignoreResourceNotFoundIndicate if failure to find the aproperty resourceshould be ignored.StringnameIndicate the name of this property source.
-
-
-
Element Detail
-
value
String[] value
Indicate the resource location(s) of the properties file to be loaded. For example,"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
.propertiesresource.${...} 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
Environmentas its own property source, and in the order declared.
-
-
-
name
String name
Indicate the name of this property source. If omitted, a name will be generated based on the description of the underlying resource.- See Also:
PropertySource.getName(),Resource.getDescription()
- Default:
- ""
-
-
-
ignoreResourceNotFound
boolean ignoreResourceNotFound
Indicate if failure to find the aproperty resourceshould be ignored.trueis appropriate if the properties file is completely optional. Default isfalse.- Default:
- false
-
-