View RSS Feed

Recent Blogs Posts

  1. How to Autowire a Spring Bean

    by , 11-16-2011 at 05:23 PM
    In previous tips, we have shown how to wire beanís properties using the <property> element. There is an alternative approach that can be used. Itís called autowiring. In this approach, Spring will wire your beans automatically if you set the autowire property on each <bean> on each of the beans that you want to autowire. There are four types of autowiring that Spring uses:

    • byNameóSpring will attempt to find a bean in the container whose name (or ID) is the same as the