0 在你的dao-config.xml中配置两个或多个context,多个context对应多个sql-map-config.xml文件,同时每个context中配置属性id。 在程序中使用DaoManager调用不同的id来使用不同的数据源。