網(wǎng)站首頁 編程語言 正文
數(shù)據(jù)接受異常:org.springframework.http.converter. HttpMessageNotReadableException: Could not read document
作者:砥礪前行沖沖沖 更新時間: 2022-08-13 編程語言異常描述
org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Unrecognized field “inputType”
原因
后端用@RequestBody注解接收J(rèn)son實體類,但前端傳來的Json中有實體類沒有的字段“inputType”
解決
后端在實體類上添加注解@JsonIgnoreProperties(ignoreUnknown = true)忽略前端所傳來的無效字段
原文鏈接:https://blog.csdn.net/manonggeerdan/article/details/125222315
相關(guān)推薦
- 2022-04-23 Windows中將Nginx添加為服務(wù)的問題_nginx
- 2022-06-22 python?實現(xiàn)?mp3Play?音頻播放_python
- 2022-12-30 解決React報錯The?tag?is?unrecognized?in?this?browser_R
- 2022-12-09 python返回多個值與賦值多個值的示例代碼_python
- 2023-03-16 Python?NumPy?數(shù)組索引的示例詳解_python
- 2022-09-23 MongoDB慢查詢與索引實例詳解_MongoDB
- 2022-11-15 Python文件讀寫及常用文件的打開方式_python
- 2023-02-07 基于C#實現(xiàn)磁性吸附窗體_C#教程
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支