From ffa2aa024e6761dfaab2a94cde10c0f5d151b326 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Wed, 31 Jul 2024 13:36:30 +0800 Subject: [PATCH] =?UTF-8?q?mybatis=E6=89=AB=E6=8F=8F=E7=82=B9=E4=BA=AE?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/mybatis/config/YudaoMybatisAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java b/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java index d685fd81..9ec9a8a1 100644 --- a/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java +++ b/yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java @@ -22,7 +22,7 @@ import org.springframework.core.env.ConfigurableEnvironment; * @author 芋道源码 */ @AutoConfiguration(before = MybatisPlusAutoConfiguration.class) // 目的:先于 MyBatis Plus 自动配置,避免 @MapperScan 可能扫描不到 Mapper 打印 warn 日志 -@MapperScan(value = "${yudao.info.base-package}", annotationClass = Mapper.class, +@MapperScan(basePackages ={"${yudao.info.base-package}","com.dianliang"}, annotationClass = Mapper.class, lazyInitialization = "${mybatis.lazy-initialization:false}") // Mapper 懒加载,目前仅用于单元测试 public class YudaoMybatisAutoConfiguration {