会议室状态修改后问题
来源:3-14 修改用户信息(后端)

qq_慕粉4216246
2024-08-15
老师,我修改会议室状态后,再添加会议室会有如下报错,这是怎么回事?
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.lang.Boolean
from String “1”: only “true” or “false” recognized; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.lang.Boolean
from String “1”: only “true” or “false” recognized
at [Source: (PushbackInputStream); line: 1, column: 42] (through reference chain: com.example.emos.api.controller.form.InsertMeetingRoomForm[“status”])
写回答
1回答
-
神思者
2024-08-16
好像是JSON格式错误,你在前端页面把Ajax上传的数据打印出来看一下
012024-08-16