Resolved [org.springframework.http.converter.HttpMessageNotReadableException: I/O error while reading input message;
时间: 2023-08-20 16:12:22 浏览: 560
failed to read input
5星 · 资源好评率100%
回答: 引用\[1\]、\[2\]和\[3\]中提到的错误是SpringBoot请求接口报错的一种情况,具体是由于缺少相应的转换器导致的。错误信息中提到了"HttpMessageNotWritableException"和"JsonMappingException",这意味着在处理请求时,SpringBoot无法将对象转换为JSON格式的响应。这可能是因为缺少适当的转换器或配置问题导致的。需要检查代码中是否正确配置了JSON转换器,并确保对象能够正确地序列化为JSON格式。另外,还需要检查是否存在权限相关的问题,如缺少权限或权限不正确导致的错误。
#### 引用[.reference_title]
- *1* [Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter for](https://blog.csdn.net/qq_42282949/article/details/125367683)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [org.springframework.http.converter.HttpMessageNotWritableException...解决方法](https://blog.csdn.net/qq_48455576/article/details/125382573)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文