Hi, I'm starting a Kotlin Backend + Spring Boot and don't know what DI framework use, which do you recommend?
10/01/2019, 4:55 PM
Doesn't Spring have DI built-in?
10/01/2019, 5:17 PM
It definitely does. If you're using Spring Boot, then you already have everything in the Spring Framework along with easier configuration based on what Boot starters you bring in.
And there's a #spring channel for more specific Kotlin related Spring questions.
10/01/2019, 5:19 PM
oh, that's right, thanks!! i'll try it
10/02/2019, 7:10 AM
Also ask yourself - do you actually need a DI framework?
10/02/2019, 11:23 AM
That moment you realize Spring framework has grown so large in features when someone asks this… 😂
10/02/2019, 11:41 AM
Spring has always covered many things, and that's why it is so many modules. So you can pick and choose what you want.
As to the 'Do you actually need a DI framework?', I suspect that the way most people define their classes, they DO NOT. But if you're using Spring Boot/Spring Framework, it assumes you will be using it so that you can access all the items that have been auto-configured, or easily configured using properties. So if you've chosen Spring Boot, you've almost implicitly chosen to use DI.