1public class SpringBean {
2 @Autowired
3 private ApplicationContext appContext;
4}
1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans.xsd">
6
7 <bean id="..." class="...">
8 <!-- collaborators and configuration for this bean go here -->
9 </bean>
10
11 <bean id="..." class="...">
12 <!-- collaborators and configuration for this bean go here -->
13 </bean>
14
15 <!-- more bean definitions go here -->
16
17</beans>