public CustomConversions customConversions() {
List<Converter<?, ?>> converterList = new ArrayList<>();
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
converterList.add(DocumentType.StringToDocumentTypeConverter.INSTANCE);
return new CustomConversions(converterList);它在spring中运行良好-data 2
现在,我正在将spring数据迁移到4.x。
如何创建CustomConversions对象?
发布于 2020-12-01 18:10:20
CustomConversions住在org.springframework.data.convert。也就是说,目前还没有Spring data4,也就是说,你一开始在做什么有点不清楚。
https://stackoverflow.com/questions/65081715
复制相似问题