From afa483d606ea6c2d1f91a494993b31c3670c0e53 Mon Sep 17 00:00:00 2001 From: tangxin <617054137@qq.com> Date: Tue, 11 Feb 2025 10:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8A=A5=E9=94=99java.lang.NoClassDefFou?= =?UTF-8?q?ndError:=20com/mybatisflex/processor/util/StrUtil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mybatisflex/core/mybatis/binding/FlexMapperProxy.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/binding/FlexMapperProxy.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/binding/FlexMapperProxy.java index 05e13556..2e135dd1 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/binding/FlexMapperProxy.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/binding/FlexMapperProxy.java @@ -26,7 +26,6 @@ import com.mybatisflex.core.row.RowMapper; import com.mybatisflex.core.table.TableInfo; import com.mybatisflex.core.table.TableInfoFactory; import com.mybatisflex.core.util.StringUtil; -import com.mybatisflex.processor.util.StrUtil; import org.apache.ibatis.reflection.ExceptionUtil; import org.apache.ibatis.session.SqlSession; @@ -62,7 +61,7 @@ public class FlexMapperProxy extends MybatisMapperProxy { // Mapper 方法上获取 UseDataSource的value值 finalDsKey = getMethodDsKey(method, proxy); // 对数据源取值进行动态取值处理 - if (!StrUtil.isBlank(finalDsKey)) { + if (StringUtil.hasText(finalDsKey)) { finalDsKey = DataSourceKey.processDataSourceKey(finalDsKey, proxy, method, args); } }