提交 8cabb7a9 编写于 作者: S simon824

1. specified jackson Date format.

2. remove getMapper method,replace with toList()
3. rewrite toList method,support constructCollectionType.
4. parseObject(resp, Map.class) replace to toMap() method
5. rename JacksonSerialize to JsonSerializer

rewrite createArrayNode,createObjectNode method will Affect too many lines ,i will fix it in the next pr.
上级 2c590450
......@@ -187,7 +187,7 @@ public class JSONUtils {
*/
public static Map<String, String> toMap(String json) {
if (StringUtils.isEmpty(json)) {
return new HashMap<>();
return null;
}
try {
......@@ -196,7 +196,7 @@ public class JSONUtils {
logger.error("json to map exception!", e);
}
return new HashMap<>();
return null;
}
/**
......
......@@ -277,7 +277,6 @@ public class DataxTask extends AbstractTask {
dataSourceCfg, dataXParameters.getSql());
ArrayNode columnArr = writerParam.putArray("column");
columnArr.addAll()
for (String column : columns) {
columnArr.add(column);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册