diff --git a/pom.xml b/pom.xml
index ab1b7772..ab9ba7d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
3.9.1
2.5
1.3.3
+ 1.9.3
1.11.3
3.17
1.7
@@ -137,6 +138,13 @@
${commons.fileupload.version}
+
+
+ commons-beanutils
+ commons-beanutils
+ ${commons.beanutils.version}
+
+
org.jsoup
diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml
index b6f76615..05136e96 100644
--- a/ruoyi-common/pom.xml
+++ b/ruoyi-common/pom.xml
@@ -47,18 +47,24 @@
jackson-databind
-
+
commons-io
commons-io
-
+
commons-fileupload
commons-fileupload
+
+
+ commons-beanutils
+ commons-beanutils
+
+
org.jsoup
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java
index c214cf2c..11bf2871 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java
@@ -11,7 +11,7 @@ import java.util.regex.Pattern;
*
* @author ruoyi
*/
-public class BeanUtils
+public class BeanUtils extends org.apache.commons.beanutils.BeanUtils
{
/** Bean方法名中属性名开始的下标 */
private static final int BEAN_METHOD_PROP_INDEX = 3;
@@ -30,21 +30,9 @@ public class BeanUtils
*/
public static void copyBeanProp(Object dest, Object src)
{
- List destSetters = getSetterMethods(dest);
- List srcGetters = getGetterMethods(src);
try
{
- for (Method setter : destSetters)
- {
- for (Method getter : srcGetters)
- {
- if (isMethodPropEquals(setter.getName(), getter.getName())
- && setter.getParameterTypes()[0].equals(getter.getReturnType()))
- {
- setter.invoke(dest, getter.invoke(src));
- }
- }
- }
+ copyProperties(dest, src);
}
catch (Exception e)
{