For anyone else interested, here is a working exam...
# spring
e
For anyone else interested, here is a working example:
Copy code
@ConfigurationProperties(prefix = "myProperties")
class MyProperties(var key1: String = "", var key2: String = "")
Copy code
@Configuration
@EnableConfigurationProperties(MyProperties::class)
class MyConfiguration constructor(myProperties: MyProperties) {

    init {
        doSomething(myProperties.key1, myProperties.key2)
    }

}