修复JSON循环依赖问题

This commit is contained in:
tanghc
2019-06-04 13:49:59 +08:00
parent 748aa51aec
commit 30c920f11e

View File

@@ -102,7 +102,7 @@ public class DocManagerImpl implements DocManager {
throw new IllegalAccessException("无权访问");
}
String docInfoJson = entity.getBody();
JSONObject docRoot = JSON.parseObject(docInfoJson, Feature.OrderedField);
JSONObject docRoot = JSON.parseObject(docInfoJson, Feature.OrderedField, Feature.DisableCircularReferenceDetect);
DocParser docParser = this.buildDocParser(docRoot);
DocInfo docInfo = docParser.parseJson(docRoot);
docDefinitionMap.put(docInfo.getTitle(), docInfo);