From 4b7f66d7d2b00b5e778afcaae9856031d210f5af Mon Sep 17 00:00:00 2001 From: jacklicn Date: Thu, 17 Oct 2019 17:28:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E5=90=AF=E5=8A=A8=E6=8A=A5Mapper?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eladmin-system/src/main/java/me/zhengjie/AppRun.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eladmin-system/src/main/java/me/zhengjie/AppRun.java b/eladmin-system/src/main/java/me/zhengjie/AppRun.java index 1a14e9eb..868ae115 100644 --- a/eladmin-system/src/main/java/me/zhengjie/AppRun.java +++ b/eladmin-system/src/main/java/me/zhengjie/AppRun.java @@ -5,6 +5,7 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.scheduling.annotation.EnableAsync; +import org.springframework.context.annotation.ComponentScan; import org.springframework.transaction.annotation.EnableTransactionManagement; /** @@ -13,6 +14,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; */ @EnableAsync @SpringBootApplication +@ComponentScan(basePackages = { "me.zhengjie.modules.system.service.mapper" }) @EnableTransactionManagement public class AppRun {