no String-argument constructor/factory method to deserialize from String value ('发送数据 2023-08-29 16:59:37')
时间: 2023-10-20 13:29:37 浏览: 220
这个错误信息表明在反序列化过程中,无法构造`com.XXXXXX.api.user.model.vo.RoleVO`类的实例,因为它没有接受字符串值作为参数的构造函数或工厂方法。具体地说,问题出在`PostRoleVO`对象的`roleList`属性中的第一个元素上。
根据提供的引用,`RoleVO`类应该具有一个接受字符串参数的构造函数或工厂方法。但是,在传递的字符串值('1398102099301875805')无法转换为`RoleVO`对象时,就会出现上述错误。
根据提供的引用,Tap库是一个用于Python的静态类型检查和代码完成工具。它并没有直接与你提到的问题有关。
要解决这个问题,你需要确保在反序列化`PostRoleVO`对象时,`roleList`属性中的每个元素都能够正确地转换为`RoleVO`对象。你可以查看`RoleVO`类的定义,并确保它具有适当的构造函数或工厂方法来接受字符串参数,并将其转换为`RoleVO`对象。
另外,还需要检查前端传递的数据格式是否正确,确保传递的字符串值能够正确解析为`RoleVO`对象。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [no String-argument constructor/factory method to deserialize from String value(‘ ‘)](https://blog.csdn.net/weixin_43608796/article/details/117557679)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [typed-argument-parser:Python的类型化参数解析器](https://download.csdn.net/download/weixin_42115003/18740765)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文
相关推荐



















