PropertyPlaceholder Configuration

The following example demonstrate spring propertyplaceholder. With this configuration, spring allow you to externalize the value into properties files.

Configuration metadata: XML-, Annotation-based, Java-based

For multiple properties file seperate by comma, Eg “classpath:a.properties, b.properties”

Complete Example

PropertyPlaceholder Configuration

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.