我编写了一个Converter的实现,它使用Jackson JSON将深度结构化对象列表序列化为JSON,但它没有被调用。我这样做了吗?
@Converter(name="arrayList", converterClass=ArrayListJsonSerializedObjectConverter.class)
private List<DeeplyStructuredObject> deeplyStructuredObjects= new ArrayList<DeeplyStructuredObject>();
此外,我想知道除了a之外是否还可以使用ReadTransfomer 转换器在同一属性上,例如
@Converter(name="arrayList", converterClass=ArrayListJsonSerializedObjectConverter.class)
@ReadTransformer(method="someMethod")
private List<DeeplyStructuredObject> deeplyStructuredObjects= new ArrayList<DeeplyStructuredObject>();