diff options
Diffstat (limited to 'spring-framework/01-basic-xml-config/src/main/resources/META-INF')
| -rw-r--r-- | spring-framework/01-basic-xml-config/src/main/resources/META-INF/spring/applicationContext.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spring-framework/01-basic-xml-config/src/main/resources/META-INF/spring/applicationContext.xml b/spring-framework/01-basic-xml-config/src/main/resources/META-INF/spring/applicationContext.xml new file mode 100644 index 0000000..48a3ecc --- /dev/null +++ b/spring-framework/01-basic-xml-config/src/main/resources/META-INF/spring/applicationContext.xml @@ -0,0 +1,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> |
