From 5276368e0ff2c004b6ce9e8e4adbd025b9c19c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E6=A2=A6?= <1101766085@qq.com> Date: Thu, 28 Nov 2024 15:44:11 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20mica-activerecord=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=9C=A8=E5=BC=80=E5=90=AF?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E8=A1=A8=E6=89=AB=E6=8F=8F=20=E6=97=B6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=20=E6=A8=A1=E5=9E=8B=E7=9A=84=E5=8C=85?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mica/activerecord/config/ActiveRecordConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mica-activerecord/src/main/java/net/dreamlu/mica/activerecord/config/ActiveRecordConfiguration.java b/mica-activerecord/src/main/java/net/dreamlu/mica/activerecord/config/ActiveRecordConfiguration.java index b5c81fe91..cf49b5d63 100644 --- a/mica-activerecord/src/main/java/net/dreamlu/mica/activerecord/config/ActiveRecordConfiguration.java +++ b/mica-activerecord/src/main/java/net/dreamlu/mica/activerecord/config/ActiveRecordConfiguration.java @@ -146,8 +146,6 @@ public ActiveRecordPlugin activeRecordPlugin(IDataSourceProvider dataSourceProvi ResourceLoader resourceLoader, MicaActiveRecordProperties properties, ObjectProvider customizerObjectProvider) { - String modelPackage = properties.getModelPackage(); - Assert.hasText(modelPackage, "mica.activerecord.model-package is blank."); ActiveRecordPlugin arp = new ActiveRecordPlugin(dataSourceProvider); arp.setDialect(properties.getDialect().getDialect()); arp.setTransactionLevel(properties.getTransactionLevel().getLevel()); @@ -162,6 +160,8 @@ public ActiveRecordPlugin activeRecordPlugin(IDataSourceProvider dataSourceProvi } // 扫描和添加表映射 if (properties.isAutoTableScan()) { + String modelPackage = properties.getModelPackage(); + Assert.hasText(modelPackage, "mica.activerecord.model-package is blank."); scanTable(arp, environment, resourceLoader, modelPackage); } // arp 自定义配置 bean