2
2
3
3
<!-- suppress SpringFacetInspection -->
4
4
<beans xmlns =" http://www.springframework.org/schema/beans"
5
- xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
6
- xsi:schemaLocation=" http://www.springframework.org/schema/beans
5
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6
+ xsi : schemaLocation =" http://www.springframework.org/schema/beans
7
7
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" >
8
8
9
- <!-- I have another class called "initHelloWorld.java" which has init and
10
- destroy methods, so that I could have these properties set for this helloWolrd
11
- bean, but since the child bean "helloChina" doesn't have this class and init/destroy
12
- methods, Spring won't work if I want to init helloChina bean. -->
13
- <bean id =" helloWorld" class =" common.HelloWorld"
14
- init-method =" init" destroy-method =" destroy" lazy-init =" true" >
15
- <property name =" message"
16
- value=" Hello World from Steve Sun's very first own Spring project!" />
17
- </bean >
9
+ <!-- I have another class called "initHelloWorld.java" which has init and
10
+ destroy methods, so that I could have these properties set for this helloWolrd
11
+ bean, but since the child bean "helloChina" doesn't have this class and init/destroy
12
+ methods, Spring won't work if I want to init helloChina bean. -->
13
+ <bean id =" helloWorld" class =" common.HelloWorld"
14
+ init-method =" init" destroy-method =" destroy" lazy-init =" true" >
15
+ <property name =" message"
16
+ value =" Hello World from Steve Sun's very first own Spring project!" />
17
+ </bean >
18
18
19
- <!-- suppress SpringFacetInspection -->
20
- <bean id =" helloChina" class =" common.HelloChina"
21
- parent=" helloWorld" lazy-init =" true" >
22
- <property name =" message" value =" Hello China! It is China this time!" />
23
- </bean >
19
+ <!-- suppress SpringFacetInspection -->
20
+ <bean id =" helloChina" class =" common.HelloChina"
21
+ parent =" helloWorld" lazy-init =" true" >
22
+ <property name =" message" value =" Hello China! It is China this time!" />
23
+ </bean >
24
24
</beans >
0 commit comments