Spring @PropertySource

If you are a Spring developer and and you have created a Java based container configuration, you have probably come across the @PropertySource annotation for importing resources. It was first added as part of Spring 3.1, but Spring 4 has added some welcome improvements. Basics Let’s start with a simple example: @Configuration @PropertySource(value = “classpath:application.properties”) … Continue reading Spring @PropertySource