I have a bunch of properties defined in pom.xml for different profiles. I would like to use @value annotation to inject the property values. It is enough to get the values set at build time.
What kind of options I have with this @value annotation? Do I have to have a separate property file or can I utilize applicationContext.xml?
What I’d do is use the properties maven plugin to write the project properties to a file and then reference that file from Spring via the
PropertyPlaceHolderConfigurermechanism