Browse Source

修正:parseFromMap方法

master
郑根木 2 years ago
parent
commit
57fdee4c8a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/util/JsonUtil.java

+ 2
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/util/JsonUtil.java View File

@@ -123,6 +123,8 @@ public class JsonUtil {
return parse(encodeString(map), clazz);
}

//此方法仅能解析简单属性,准备废弃
@Deprecated
public static <T> T parseSimple(Map map, Class<T> clazz) {
try {
if (map == null || map.isEmpty()) {


Loading…
Cancel
Save