Commit 58e018373a78cee1a0c441f8613be4025460161c

Authored by 王彬
1 parent c1d9d4b9
Exists in master

1.fix a bug about Field

build.gradle
... ... @@ -55,7 +55,7 @@ uploadArchives {
55 55 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
56 56 }
57 57 pom.project {
58   - version '1.0.4'
  58 + version '1.0.5'
59 59 artifactId ARTIFACT_Id
60 60 groupId GROUP_ID
61 61 packaging TYPE
... ...
src/main/java/com/taover/util/UtilHttpRequestMap.java
... ... @@ -7,9 +7,6 @@ import java.util.Iterator;
7 7 import java.util.List;
8 8 import java.util.Map;
9 9  
10   -import com.taover.util.UtilLog;
11   -import com.taover.util.UtilString;
12   -
13 10 public class UtilHttpRequestMap {
14 11 /**
15 12 * 将requestMap上的String[]转换为String
... ... @@ -78,6 +75,7 @@ public class UtilHttpRequestMap {
78 75 }
79 76  
80 77 Field keyField = beanClass.getDeclaredField(camelName);
  78 + keyField.setAccessible(true);
81 79 String keyFieldTypeName = keyField.getType().getSimpleName();
82 80 if(keyValue == null){
83 81 keyField.set(result, null);
... ...