1.配置jdbc.properties文件,添加新的数据库连接的参数
2.配置spring-datasource.xml文件,根据之前添加的数据库参数添加新的dataSource bean
3.配置spring-datasource.xml文件,根据新配置的dataSource bean配置新的sqlMapClient bean,其中configLocations参数配置一个新的SqlmapConfig-xxx.xml
4.配置ta/spring-dao.xml文件,新增一个absDao bean和dao bean,其中absDao的sqlMapClient参数配置为上一步配置的sqlMapClient,dao bean的parent属性配置为absDao
5.之后就是与普通的配置sqlmap和service方法一致了,添加spring-xxx.xml并在spring-cfg-include.xml中声明(配置service时,注入之前配置的dao),添加sqlmap.xml在SqlmapConfig-xxx.xml中声明等配置。