Spring Bean Autowiring
We know that Spring framework is building on dependency injection and we are injecting dependencies through spring bean configuration file. We provide bean configuration details in the spring bean configuration file and also specify the beans that will be injected in other beans using ref attribute. Without configuring the inner bean, directly if we want to place inner bean to outer bean, that means there is no need to configure inner beans inside the outer bean. Directly we can place inner bean inside the outer bean automatically then that concept is known as bean auto wiring. Autowiring is only supported if the dependencies are in the form of objects only. By default bean auto wiring is disabled in spring framework. To enable autowiring, we have to add autowire attribute to the bean element or bean tag. There are five ways that a spring bean can be autowired.
Java Training | Python Training | Machine Learning with Python Training | Deep Learning with Python Training | Data Science with Python Training | Projects
SILAN Technology, BBSR Call to: 0674-2361252