I am converting a Scala app to Spring Boot using K...
# spring
c
I am converting a Scala app to Spring Boot using Kotlin. I had a Scala object (which would have been a class of static methods in Java), to create a JWT, and to check the http-header for the jwt token and to read/verify the data...This all works well, but I am trying to access a property from
application.properties
, but this fails. I am using @Value("\${application.secret:}") lateinit var jwtSecret: String but this fails to initialise the secret from the application properties. I am not sure if I am missing another annotation to tell Spring to scan this particular kotlin file, but I couldnt find anything when searching.