inject spring bean properties methods

If you want to set your Spring bean’s property value in bean configuration file, you can use below methods. Use property tag under bean tag. <bean id=”beanPropsInjection” name=”beanPropsInjection” class=”com.dev2qa.example.spring.BeanPropertiesInjection”> <property […]

After you configure <context:component-scan base-package=”com.dev2qa.examples”> in Spring bean configuration xml file, Spring container can automatically scan the java files under base-pack and it’s sub packages. If it has scanned the classes with […]

spring bean scope diagram

In Spring, bean scope is defined by it’s type, different type of Spring bean instance can be used in different scenarial. There are totally 5 scope type by default.