Skip to main content
added 64 characters in body
Source Link
NightWolf
  • 7.8k
  • 11
  • 78
  • 123

If I have 2 properties file.properties files setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I enjectinject via annotations these properties files into a bean with java.util.Properties?

How can I grab specific properties via Spring annotations?

Cheers!

If I have 2 properties file setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I enject via annotations these properties files into a bean with java.util.Properties?

Cheers!

If I have 2 .properties files setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I inject via annotations these properties files into a bean with java.util.Properties?

How can I grab specific properties via Spring annotations?

Cheers!

edited tags
Link
NightWolf
  • 7.8k
  • 11
  • 78
  • 123
added 26 characters in body
Source Link
NightWolf
  • 7.8k
  • 11
  • 78
  • 123

If I have 2 properties file setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I enject via annotations these properties files into a bean with java.util.Properties?

Cheers!

If I have 2 properties file setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I enject via annotations these properties files into a bean?

Cheers!

If I have 2 properties file setup in my Spring XML as so:

<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/> <util:properties id="someConfig" location="file:./applications/MyApplication/config.properties"/> 

How can I enject via annotations these properties files into a bean with java.util.Properties?

Cheers!

Source Link
NightWolf
  • 7.8k
  • 11
  • 78
  • 123
Loading