Reputation: 71
I have created @ConditionalOnExpression("'${property1}'!='local,log-debug' and '${property1}'!='local'") Do we have any optimized spel for this
Upvotes: 2
Views: 797
Reputation: 620
You may want to use this
@ConditionalOnExpression("!{'local', 'log-debug'}.contains('${property1}')")
Upvotes: 3