How to have conditional statement within a spring configuration file
I have String bean (b) whose value depends on the value of a property (a). a is set dynamically
As Ryan said SpEL can help. You should be able to do something like this in Spring xml: