The different types of loC are: –
Setter Injection: With the help of JavaBeans properties.
Constructor Injection: Dependencies are given in the form of constructor parameters.
Interface Injection: With the help of an interface, an Injection is performed.
Out of these three, only construction and setter are being used in Spring.
https://www.baeldung.com/inversion-control-and-dependency-injection-in-spring