hello channel
I am working on a Kotlin + Spring application, and wondering if this is possible or not:
there is a properties configuration:
@ConfigurationProperties("application.custom.properties")
data class SomeProperties(
val foo: Long,
val bar: String,
)
application.properties:
application.custom.properties.foo=1
application.custom.properties.bar=Text Here
ok, so I have another class, just a POJO, and need to get the values from that configuration properties bean
data class ObjectBuilder(
var fooValue: Long = SomeProperties.foo,
var barValue: String = SomeProperties.bar,
)
is there a way of getting the SomeProperties values on a non spring context?