---修复关联关系一对多bug
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
package com.xjrsoft.test;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
|
||||
public class JsonTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String json = "{\"name\":\"John\",\"age\":30,\"city\":\"New York\"}";
|
||||
Map<String,Object> bean = JSONUtil.toBean(json, Map.class, true);
|
||||
System.out.println(bean);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user