Package cn.net.pap.neo4j.serializer.jackson


package cn.net.pap.neo4j.serializer.jackson
  • Classes
    Class
    Description
    使用 JsonSerializer 处理序列化过程中的循环引用 ObjectMapper objectMapperSerializer = new ObjectMapper(); SimpleModule module = new SimpleModule(); module.addSerializer(PersonEntity.class, new PersonEntitySerializer()); objectMapperSerializer.registerModule(module); String serializerStr = objectMapperSerializer.writeValueAsString(p2);