帖子
帖子
用户
博客
课程
显示全部楼层
6
帖子
0
勋章
41
Y币

CooperationFileService上传文件报错

[复制链接]
发表于 2024-2-1 17:09:27
@Autowired
private CooperationFileService fileService;

/**
* 上传文件
*
* @param appCode          应用标识, 需要提前约定
* @param businessId       业务ID
* @param stream           文件流
* @param fileName         文件名称
* @param property         文件其他属性
* @return 文件信息
*/
CooperationFileInfo cooperationFileInfo = fileService.uploadFile(appCode,businessId,stream,fileName, property);

报错信息
org.springframework.web.client.RestClientException: Error while extracting response for type [class com.yonyou.iuap.fileservice.sdk.module.pojo.CooperationFileList$CooperationFileListDTO] and content type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.util.ArrayList<com.yonyou.iuap.fileservice.sdk.module.pojo.CooperationFileInfo$CooperationFileInfoDTO>` from Object value (token `JsonToken.START_OBJECT`); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<com.yonyou.iuap.fileservice.sdk.module.pojo.CooperationFileInfo$CooperationFileInfoDTO>` from Object value (token `JsonToken.START_OBJECT`)
at [Source: (PushbackInputStream); line: 1, column: 132] (through reference chain: com.yonyou.iuap.fileservice.sdk.module.pojo.CooperationFileList$CooperationFileListDTO["data"])


140
帖子
3
勋章
1521
Y币
请到YonBIP客开模块提问,感谢您的理解。
您需要登录后才可以回帖 登录

本版积分规则