Hi, I'm starting a Kotlin Backend + Spring Boot an...
# server
c
Hi, I'm starting a Kotlin Backend + Spring Boot and don't know what DI framework use, which do you recommend?
m
Doesn't Spring have DI built-in?
m
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.
c
oh, that's right, thanks!! i'll try it
t
Also ask yourself - do you actually need a DI framework?
💯 5
👍 2
m
That moment you realize Spring framework has grown so large in features when someone asks this… 😂
m
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.
👍 1
c
thanks for all the answers!