I have the following interface :
@Primary
@ConditionalOnProperty(value = "ms.couchbase.enabled", havingValue = "true", matchIfMissing = true)
@ConditionalOnProperty(value = "iiams.switch.iiamsSingleProcessIdPer100", havingValue = "true", matchIfMissing = true)
public interface AsyncCommonRepository extends CouchbaseRepository<CouchbaseDocument, Long> { }
Of course this does not compile.
All I want is to combine somehow the two @ConditionalOnProperty
. Should I use @ConditionalOnExpression
?
Thanks in advance!