adspace


What is binding in spring and tell us about the @autowired annotation?

Answer Posted / Sidharth Kumar

Binding in Spring refers to the relationship between Spring-managed objects. Autowiring is a type of binding that automatically resolves the dependencies between these objects. The @Autowired annotation is used for autowiring components, allowing Spring to inject dependencies into your beans during runtime based on their types or names. There are different autowiring modes available in Spring, such as byType (injection based on types), byName (injection based on bean names), and constructor-based autowiring.

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 lazy class?

490


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

556


How can you inject java collection in spring?

518