I've seen examples of how to do this in Java but I'm lacking an example in Kotlin. I want to read a property into a boolean using the @Value
annotation from Spring
In my constructor I'm doing:
@Value("\${kafka.userComplexTopics:false}")
val useComplexTopicsString: String,
to pull out my String value and then in my class I have:
private val useComplexTopics = useComplexTopicsString.toBoolean()
I've been screwing around with SePL and can't make it work in one line.