From 1bdd6405e8caffc058066bdd26cb6de1ea9cf7ea Mon Sep 17 00:00:00 2001 From: songhuangfeng123 <shf18767906695@163.com> Date: 星期二, 09 八月 2022 18:35:39 +0800 Subject: [PATCH] 8-9fix --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java index cb05d9e..484e9ca 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/MyBatisConfigGoalManage.java @@ -23,7 +23,7 @@ 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 { @@ -50,7 +50,7 @@ ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); //------------------- - Resource[] rs1 = resolver.getResources("classpath*:config/mapper/goalManage/**Mapper.xml"); + Resource[] rs1 = resolver.getResources("classpath*:config/mapper/goalManage/**/**Mapper.xml"); // Resource[] rs2 = resolver.getResources("classpath*:config/mapper/goalManage/**Mapper.xml"); ArrayList<Resource> resourceArrayList = new ArrayList<>(Arrays.asList(rs1)); // resourceArrayList.addAll(new ArrayList<>(Arrays.asList(rs2))); -- Gitblit v1.9.2