I have a @ConditionalOnExpression which uses a property from my application.properties. I would like the @ConditionalOnExpression to use a OR condition so that it triggers if one out three different values for the property is there.
@ConditionalOnExpression("'${env.name}'=='prod' or '${env.name}' == 'alsoProd'")
I cant seem to get this to work. So, is it even possible to use an OR statement in the @ConditionalOnExpression??