``` @ConfigurationProperties("foo") class FooPrope...
# spring
s
Copy code
@ConfigurationProperties("foo")
class FooProperties {
	lateinit var foo1: String
	lateinit var foo2: String
	lateinit val bar = Bar()

	class Bar {
		lateinit var bar1: String
		lateinit var bar2: String
	}
}
c
Hi, Sébastien, I've been using
@ConfigurationProperties
in this manner for a while in a couple of my projects and didn't have problems. Looking forward to immutable data classes support, though 🙂
s
Good news, yeah we will do that for 2.1 hopefully
i
I tend to use shorter
val bar = Bar()
instead of
lateinit val bar = Bar()
for those nested classes
c
lateinit val
won't even work. only
var
can be
lateinit
. That's a mistype on Sébastien's part, I believe.