美好的一天,从解决BUG开始!
org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.athk.commonutils.R com.athk.eduservice.controller.EduCourseController.addCourseIfno(com.athk
本文介绍了在前后端分离的项目中遇到'Required request body is missing'错误的解决过程。问题源于前端数据丢失,通过检查发现前端数据未正确定义为JSON。文中探讨了两种解决方案:1) 前端使用data:定义数据;2) 后端实体类添加前端缺少的属性。最后,作者提到实体类为过渡类的情况,选择在后端添加属性解决了问题。
美好的一天,从解决BUG开始!
org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.athk.commonutils.R com.athk.eduservice.controller.EduCourseController.addCourseIfno(com.athk

被折叠的 条评论
为什么被折叠?