Holooly Plus Logo

Input / Question:

Input / Question:

What is Auto wiring?

Verified

Output/Answer

You can wire the beans as you wish. But spring framework also does this work for you. It can auto wire the related beans together. All you have to do is just set the autowire attribute of bean tag to an autowire type.

<beans>

<bean id="bar" class="com.act.Foo" Autowire=”autowire type”/>

</beans>