adspace


What is the use of @autowired annotation?

Answer Posted / Anuj Kumar Verma

The @Autowired annotation is used in Spring Framework to inject dependencies automatically. When applied to a field, constructor, or setter method, Spring will ensure that the corresponding dependency is autowired.

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