I need to use the values from the property file… I tried searching it.. What i got is… i need to define a bean of PropertyPlaceHolderConfirguartion under beans.factory.config package of spring framework. But i wish to use it in a pure java class. Depending on a particular value selected, i need to load a particular property file and use the property. How can i achieve this?
Share
In your Spring config file, you can have something like this;
Then say you have a class like this;
You can use Spring to define a bean and give it properties by adding this to your Spring config file;