adspace


What is autowiring in spring? What are the autowiring modes?

Answer Posted / Richa Verma

Autowiring in Spring Framework is a feature that allows automatic injection of dependencies into other beans. There are four autowiring modes: byName (matches by bean name), byType (matches by type), constructor (injects all constructors' parameters based on type), and autodetect (combines byName and byType).

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


What is lazy class?

490


How can you inject java collection in spring?

518