In the process of working with the Spring Framework, I encountered two concepts : IOC Management Inversion and DI Dependency Injection and I can’t see the difference. It seems that everything is simple, we just use @Authowired or if it is a boot, then @Repository / @Service / @Controller and calculate that Spring will create us instances in the form of Singleton or Prototype. If you wrote a nonsense correct please.
Question: Where is here in this system the border between dependency injection and control inversion (with the same dependency, if I understand correctly). Well, like Spring created instances and manages their life cycle ... Please explain how to correctly understand this separation? IOC and DI.
Thank.