| | |
| | | import java.util.Arrays; |
| | | |
| | | @Configuration |
| | | @MapperScan(basePackages = {"com.gkhy.safePlatform.goalManage"}, |
| | | @MapperScan(basePackages = {"com.gkhy.safePlatform.targetDuty"}, |
| | | sqlSessionTemplateRef = "sqlTemplateGoalManage",annotationClass = |
| | | Repository.class) |
| | | public class MyBatisConfigGoalManage { |
| | |
| | | throws Exception |
| | | { |
| | | MybatisSqlSessionFactoryBean factoryBean = new MybatisSqlSessionFactoryBean(); |
| | | factoryBean.setDataSource(dataSource); |
| | | factoryBean.setDataSource(dsGoalManage); |
| | | ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); |
| | | |
| | | //------------------- |