What would be the equivalent in java based configuration of XML based spring configuration
<util:properties id="mapper" location="classpath:mapper.properties" />
To then be able to use this specific property object in code like :
@Resource(name = "mapper")
private Properties myTranslator;
Looking at the doc, I looked at the
@PropertySource
annotation but it seems to me that the particular propertyfile will not be able to be accessed individually from the Environment object.