Conditional statement inside Spring config

Viewed 51478

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?

4 Answers
Related