From b8577b7f132fe959fb2faf0f8704d3e7627f1bbb Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 14 May 2025 10:57:11 +0800 Subject: [PATCH] update properties --- pom.xml | 2 +- .../java/com/ruoyi/common/utils/reflect/ReflectUtils.java | 5 +++++ src/main/resources/application.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 38c8967e..bc264955 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ 2.3.3 3.0.0 4.1.2 - 6.6.5 + 6.8.1 9.0.102 1.2.13 diff --git a/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java b/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java index 2d366858..5970cbac 100644 --- a/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java +++ b/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java @@ -6,6 +6,7 @@ import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; +import java.math.BigDecimal; import java.util.Date; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; @@ -208,6 +209,10 @@ public class ReflectUtils { args[i] = Convert.toBool(args[i]); } + else if (cs[i] == BigDecimal.class) + { + args[i] = Convert.toBigDecimal(args[i]); + } } } return (E) method.invoke(obj, args); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 1fb893e7..e5d193d1 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -139,7 +139,7 @@ xss: # 防止csrf攻击 csrf: # 过滤开关 - enabled: true + enabled: false # 白名单(多个用逗号分隔) whites: /druid