I import in a Kotlin configuration class the
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
but I get the error message of An annotation argument must be a compile-time constant
from IntelliJ when I use the annotation with Spring expression language on a bean definition
@ConditionalOnExpression("${xxx.enabled:true} or ${yyy.enabled:true}")
The xxx.enabled and yyy.enabled are configured in a yml file.
What could be the problem? Thanks.