CT Property Source - prasadtalasila/BITS-Darshini GitHub Wiki
In Spring, you can use @PropertySource annotation to externalize your configuration to a properties file.
The @PropertySource annotation is used to add any source of key-value pairs to spring’s Environment. The Environment object represents the spring environment in which the current application is running.
Example :
[The class mentioned above uses @PropertySource to autowire an Environment field, which it then passes to ElasticSearchFactoryImpl.java. This class extracts the values corresponding to specific keys from a file specified.]