blob: 48a3ecc81ad0d038a4a0c1b194f0b0af62039b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--
Maths maths = new Maths();
maths.setB(100);
-->
<bean id="maths" class="com.example.spring.Maths">
<property name="b" value="100"></property>
</bean>
<!--
MathsUser mathsUser = new MathsUser();
mathsUser.setMaths(maths);
-->
<bean id="mathsUser" class="com.example.spring.MathsUser">
<property name="maths" ref="maths"></property>
</bean>
</beans>
|