<?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-2.5.xsd">
<bean id="lowerAction" class="com.demo.LowerAction"></bean>
<bean id="upperAction" class="com.demo.UpperAction"></bean>
<!-- more bean definitions go here -->
</beans>
===========================================
=========== load from multi files =================
===========================================
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[] {"services.xml", "daos.xml"});
===========================================
=========== import multi files =================
===========================================
1.must before bean definition
2.开头的斜杠 ‘/’实际上可忽略
<beans>
<import resource="services.xml"/>
<import resource="resources/messageSource.xml"/>
<import resource="/resources/themeSource.xml"/>
<bean id="bean1" class="..."/>
<bean id="bean2" class="..."/>
</beans>