0
我有以下豆需要地圖,都與一個java.io.File
場:推土機:映射異常
class CvPDFRespBO {
private String rutPersona;
private File cvPDF;
getter()...setter()
}
public class CvPdfSVSResp{
private String rutPersona;
private File cvPDF;
getter()...setter()
}
但地圖給我下面的錯誤:
11:01:33,208 ERROR [org.dozer.MappingProcessor] (http--0.0.0.0-8085-1) Field mapping error -->
MapId: null
Type: null
Source parent class: package.CvPDFRespBO
Source field name: cvPDF
Source field type: class java.io.File
Source field value: /var/folders/g0/yvljc75d2vl9bvs57vd4_2qr0000gq/T/2003JC4E5C928C429A8E48541.pdf
Dest parent class: package.svs.CvPdfSVSResp
Dest field name: cvPDF
Dest field type: java.io.File: org.dozer.MappingException: java.lang.NoSuchMethodException: java.io.File.<init>()
任何提示嗎?謝謝。