no String-argument constructor/factory method to deserialize from String value ('发送数据 2023-08-29 16:59:37')
时间: 2023-10-20 18:29:37 浏览: 224
这个错误信息表明在反序列化过程中,无法构造com.XXXXXX.api.user.model.vo.RoleVO
类的实例,因为它没有接受字符串值作为参数的构造函数或工厂方法。具体地说,问题出在PostRoleVO
对象的roleList
属性中的第一个元素上。
根据提供的引用,RoleVO
类应该具有一个接受字符串参数的构造函数或工厂方法。但是,在传递的字符串值('1398102099301875805')无法转换为RoleVO
对象时,就会出现上述错误。
根据提供的引用,Tap库是一个用于Python的静态类型检查和代码完成工具。它并没有直接与你提到的问题有关。
要解决这个问题,你需要确保在反序列化PostRoleVO
对象时,roleList
属性中的每个元素都能够正确地转换为RoleVO
对象。你可以查看RoleVO
类的定义,并确保它具有适当的构造函数或工厂方法来接受字符串参数,并将其转换为RoleVO
对象。
另外,还需要检查前端传递的数据格式是否正确,确保传递的字符串值能够正确解析为RoleVO
对象。123
引用[.reference_title]
- 1 2 no String-argument constructor/factory method to deserialize from String value(‘ ‘)[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
allinsert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - 3 typed-argument-parser:Python的类型化参数解析器[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
allinsert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
相关推荐



















