Annotation Interface EncryptablePropertySource
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(EncryptablePropertySources.class)
@Import(EncryptablePropertySourceConfiguration.class)
public @interface EncryptablePropertySource
Encryptable version of Spring
PropertySource- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
- See Also:
-
PropertySource
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicate if failure to find the aproperty resourceshould be ignored.Indicate the name of this property source.
-
Element Details
-
value
String[] valueIndicate 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 nameIndicate 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 ignoreResourceNotFoundIndicate if failure to find the aproperty resourceshould be ignored.trueis appropriate if the properties file is completely optional. Default isfalse.- Default:
- false
-