Professional Documents
Culture Documents
Xmlspring
Xmlspring
<value>nitesh</value>
<ref> --> can also be include
</set>
ob.add("")
[2]
<List>
<value>1001</value>
<value>nitesh</value>
<ref> --> can also be include
</List>
ob.add("")
[3]
<map>
<entry key = "k1" value="1001"/>
<entry key = "k2" value="1002"/>
<entry key = "k3" value="1003"/>
</map>
ob.put("","")
[4]
<props>
<prop key="k1">1001</prop>
</props>
ob.put("","")
------------------ Constructor Injection ------------------<bean id="id1" class="">
<constructor-arg>
<value>welcome</value>
</constructor-arg>
</bean>
/********** Double constructor ***************/
<bean id="id1" class="">
<constructor-arg index = "0" value="welcome"/>
</constructor-arg>
</bean>
-----------------------*** AutoWiring *********---------<beans>
<bean id="id1" class="class_name" autowire="any 5 type"/>
<bean id="ob2" class="class_name2"/>
</beans>
[2] by type
no need to take "ob2" same name , can be tAKE ANY NAME
[3] constructor
constructor of class need
[4] Autodetect
if constructor then work according if not then by type it will work.
*********** Uesd for auto wiring ************
<beans>
<context : anotation-config/>