Posts in "Spring"

Spring autowiring by name example

In Previous article we have learned about autowiring byType. In this article we will learn about the Autowiring by Name. Autowiring byName means whenever spring finds any property to be autowired, it will search for exactly one bean of given property name in container. If Spring find one(unique bean) it will autowire it. If it doesn’t find any, no auto… Continue reading

Spring autowiring by type

In Previous article we have learned that Spring support different type of autowiring. One of them is byType. Autowiring byType means whenever spring finds any property to be autowired, it will search for exactly one bean of given property type in container. If Spring find one(unique bean) it will autowire it. If it doesn’t find… Continue reading

Spring Autowiring

Spring container autowire relationship between different beans. Whenever we create a bean in Spring (In configuration file). Spring will check the dependency of that bean and inject the dependency @ run-time  Spring will identify @ run-time which bean to inject by different mechanism, It is called Autowiring.