无法在角度2中实现PUT请求,出现错误“不允许空值”

2024-07-04

我已经在我的应用程序中实现了 GET 请求,并且能够在账户组件.

当我单击中的特定行时DataGrid,我得到一个POPUP我可以在其中访问 row_data 的窗口,并使用下拉菜单可以更新 **DataGrid **

但是,当我为下拉列表选择所需的值并尝试更新时,我的控制台中出现以下错误。

Error code is : Error {"message":"Null values are not allowed","error":"java.lang.NullPointerException","path":"/spacestudy/rockefeller/admin/account/saveAttributes"}

请访问我的示例 StackBlitzhere https://stackblitz.com/edit/http-in-angular?file=app%2Fapp.module.ts

下面显示的是我的示例应用程序的屏幕截图。

This is my Account Table
When I click on a row here is my POPUP
When I try to update I'm getting the following error in my console & Network tab
But when I'm trying to save it from backend through Swagger UI,then I'm able to successfully update the data

有人可以帮我解决这个问题吗......?

Latest screen shot enter image description here


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法在角度2中实现PUT请求,出现错误“不允许空值” 的相关文章

随机推荐