I\'m using Spring-Boot-1.1.7. My intention is to add a bean to my context according to a value of a property of type string.
I mean, I can see a lot of examples of boole
Eventually , this one worked for me:
@ConditionalOnExpression("'${server.host}'=='localhost'")