https://kotlinlang.org logo
#spring
Title
# spring
d

Dennis Schröder

06/15/2021, 3:53 PM
How can I inject a property from my
application.yaml
in a functional way?
Copy code
beans {
    bean {
        Foo(property("foo.bar.buz"))
    }
}
i

Ivan Pavlov

06/15/2021, 7:59 PM
I guess it should be something like
env.getProperty("foo.bar.buz")
d

Dennis Schröder

06/16/2021, 6:15 AM
Perfekt, thx. That I was looking for.
t

thol01

06/16/2021, 1:45 PM
or env[“foo.bar.buz”]!!
8 Views