Spring Autowiring byName Example

We all know what is Autowiring in Spring,now lets take a look into Autowiring byName in this article. In this type of autowiring, Spring framework finds out a bean in the configuration file, whose bean id is matching with the property name.  If a bean is found with the bean id as the property name in the configuration file then Spring internally uses Setter Injection and the object will be injected. If no id is found then that property remains un-wired and never throws any exception.
[Read more…]