Is there a recommended modifier for autowired vari...
# spring
g
Is there a recommended modifier for autowired variables?
lateinit var
or a null initialized
val
z
You can't change a val once it's initialized
The only way I've seen work is lateinit var (or constructor autowiring with vals, which I like the most)
👍 3
g
Thank you!
s
Yes constructor autowiring should be the default option even for var
🌟 2