| Author |
Bean Autowiring, PropertyPlaceholderConfigurer
|
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1173
|
|
Hey guys,
I am currently switching to the spring auto wiring mechanism and face the following problem.
Using the plain xml configuration, I would wire the config value in using the PropertyPlaceholderConfigurer and then simply pass the value using <constructor-arg value="${prop.name}" />
How would I do this in the auto wiring world??
Thank's for your help
|
JDBCSupport - An easy to use, light-weight JDBC framework -
|
 |
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 344
|
|
As of Spring 3, you can use @Value:
|
 |
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1173
|
|
Awesome.
The PropertyPlaceholderConfigurer get's set up in the spring context the usual way right ?
|
 |
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 344
|
|
|
I believe so Sebastian.
|
 |
Sebastian Janisch
Ranch Hand
Joined: Feb 23, 2009
Posts: 1173
|
|
|
ok cool ... thank's for your help.
|
 |
 |
|
|
subject: Bean Autowiring, PropertyPlaceholderConfigurer
|
|
|