From 54083b6044bf1131d62f62e1de8d494aeeca84d7 Mon Sep 17 00:00:00 2001 From: gzoldou Date: Tue, 3 Mar 2026 11:27:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=88=B0springboot4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/common/spring/SpelUtil.java | 10 +++++----- easy-trans-spring-boot-starter/pom.xml | 4 ++++ .../org/dromara/trans/config/TransServiceConfig.java | 2 +- pom.xml | 12 +++++++++--- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/easy-trans-service/src/main/java/org/dromara/common/spring/SpelUtil.java b/easy-trans-service/src/main/java/org/dromara/common/spring/SpelUtil.java index 978ba5f..d665831 100644 --- a/easy-trans-service/src/main/java/org/dromara/common/spring/SpelUtil.java +++ b/easy-trans-service/src/main/java/org/dromara/common/spring/SpelUtil.java @@ -1,7 +1,7 @@ package org.dromara.common.spring; import org.springframework.context.expression.MethodBasedEvaluationContext; -import org.springframework.core.LocalVariableTableParameterNameDiscoverer; +import org.springframework.core.StandardReflectionParameterNameDiscoverer; import org.springframework.expression.ExpressionParser; import org.springframework.expression.spel.standard.SpelExpressionParser; import org.springframework.expression.spel.support.StandardEvaluationContext; @@ -24,8 +24,8 @@ public class SpelUtil { public static String parse(String spel, Method method, Object[] args) { //获取被拦截方法参数名列表(使用Spring支持类库) - LocalVariableTableParameterNameDiscoverer u = - new LocalVariableTableParameterNameDiscoverer(); + StandardReflectionParameterNameDiscoverer u = + new StandardReflectionParameterNameDiscoverer(); String[] paraNameArr = u.getParameterNames(method); //使用SPEL进行key的解析 ExpressionParser parser = new SpelExpressionParser(); @@ -49,8 +49,8 @@ public class SpelUtil { */ public static String parse(Object rootObject, String spel, Method method, Object[] args) { //获取被拦截方法参数名列表(使用Spring支持类库) - LocalVariableTableParameterNameDiscoverer u = - new LocalVariableTableParameterNameDiscoverer(); + StandardReflectionParameterNameDiscoverer u = + new StandardReflectionParameterNameDiscoverer(); String[] paraNameArr = u.getParameterNames(method); //使用SPEL进行key的解析 ExpressionParser parser = new SpelExpressionParser(); diff --git a/easy-trans-spring-boot-starter/pom.xml b/easy-trans-spring-boot-starter/pom.xml index 935407c..a18dbae 100644 --- a/easy-trans-spring-boot-starter/pom.xml +++ b/easy-trans-spring-boot-starter/pom.xml @@ -24,6 +24,10 @@ org.springframework.boot spring-boot-autoconfigure + + org.springframework.boot + spring-boot-restclient + org.springframework.cloud spring-cloud-commons diff --git a/easy-trans-spring-boot-starter/src/main/java/org/dromara/trans/config/TransServiceConfig.java b/easy-trans-spring-boot-starter/src/main/java/org/dromara/trans/config/TransServiceConfig.java index cd2f1fa..471e9aa 100644 --- a/easy-trans-spring-boot-starter/src/main/java/org/dromara/trans/config/TransServiceConfig.java +++ b/easy-trans-spring-boot-starter/src/main/java/org/dromara/trans/config/TransServiceConfig.java @@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.boot.web.client.RestTemplateBuilder; +import org.springframework.boot.restclient.RestTemplateBuilder; import org.springframework.cloud.client.loadbalancer.LoadBalanced; import org.springframework.context.annotation.*; import org.springframework.data.redis.connection.RedisConnectionFactory; diff --git a/pom.xml b/pom.xml index 730bf19..f63f26a 100644 --- a/pom.xml +++ b/pom.xml @@ -29,14 +29,14 @@ easy-trans-dependencies - 3.1.4 + 4.0.0-SNAPSHOT UTF-8 17 17 2.2.4 3.5.3.2 - 3.1.5 - 6.2.16 + 4.0.3 + 7.0.5 5.4.12.Final 3.5.5 2.0.42 @@ -112,6 +112,12 @@ ${fhs.springboot.version} compile + + org.springframework.boot + spring-boot-restclient + ${fhs.springboot.version} + compile + org.springframework.data spring-data-redis -- Gitee From 57a69ff6ebbd876d4556705d30a1362819e30d06 Mon Sep 17 00:00:00 2001 From: gzoldou Date: Sun, 8 Mar 2026 00:31:26 +0800 Subject: [PATCH 2/2] 4.0.0 --- README.md | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3524700..0b29552 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ syslog查询、syslog实时查看、登录日志、审计日志 5 我有一个唯一键(比如手机号,身份证号码,但是非其他表id字段),但是我需要给客户展示他的title/name 但是我又不想自己手动做表关联查询 6 Excel导入场景,把 用户名 admin 反向翻译为 userid1 把男 反向翻译为 gender_1 (具体看官网文档) # 最新版本 -springboot3.x 最新easy-trans版本:3.1.4 springboot 2.x 最新easy-trans版本 2.3.4 +springboot4.x 最新easy-trans版本:4.0.0 springboot3.x 最新easy-trans版本:3.1.4 springboot 2.x 最新easy-trans版本 2.3.4 # groupid和包名变更说明 从3.1.0和2.3.0开始,包名和maven的groupid由com.fhs变更为dormara社区统一的org.dromara,以下版本不变。 diff --git a/pom.xml b/pom.xml index f63f26a..5ded23b 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ easy-trans-dependencies - 4.0.0-SNAPSHOT + 4.0.0 UTF-8 17 17 -- Gitee