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 based on environment it runs.
if (a)
b="yes"
else
b="no"
How do i code this in spring config?
Best Solution
As Ryan said SpEL can help. You should be able to do something like this in Spring xml: