adspace
What is difference between bytype and byname in spring?
Answer Posted / Vijendra Sharma
In Spring Framework, 'byType' refers to autowiring beans based on their type, while 'byName' allows autowiring based on the bean's name. ByType is the default autowire mode. ByName can be useful when there are multiple beans of the same type and you want to specify a specific one by its name.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers