adspace


How does spring do dependency injection?

Answer Posted / Girish Chandra Asrekar

Spring Framework performs Dependency Injection (DI) by managing the lifecycle of objects, creating instances of beans when needed, and injecting them into other dependent beans. This can be achieved using XML configuration, annotations, or Java Configurations.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518


What is lazy class?

490