分配置文件开发
模式1:构造时传入每个配置文件
//1. 途径1 : 可以在构造Spring容器的时候,分别指定多个配置文件,它会自动组合到一起构成一个容器。
ApplicationContext context = new ClassPathXmlApplicationContext(
"classpath:com/example/spring/distributed/dao.xml",
"classpath:com/example/spring/distributed/service.xml",
"classpath:com/example/spring/distributed/tx.xml"
);
//2