JAVA在使用FastJson转复杂对象时使用
JSON.toJSonString(对象)
会出现 key值$ref情况,为了避免这种情况, 可以使用下面的代码:
SerializerFeature.DisableCircularReferenceDetect
JSON.toJSonString(对象, SerializerFeature.DisableCircularReferenceDetect)
Maphead = head(); List

JAVA在使用FastJson转复杂对象时使用
JSON.toJSonString(对象)
会出现 key值$ref情况,为了避免这种情况, 可以使用下面的代码:
SerializerFeature.DisableCircularReferenceDetect
JSON.toJSonString(对象, SerializerFeature.DisableCircularReferenceDetect)
Maphead = head(); List
上一篇 [mysql]mysql通过on duplicate key update实现批量插入或更新
下一篇 The dependencies of some of the beans in the application context form a cycle: