您使用了html页面顶部的表单:
<form method="post" th:object="${entSetCharges}" th:action="@{/updatesetcharges}">将
th:field="*{chargesName}被绑定到您的内部对象/豆th:object="${entSetCharges}。这意味着您正在搜索对象内不存在或为空的chargesName字段
entSetCharges。
解:
也许将您th:field="*{chargesName}"的${savedcharges.chargesName}表达式更改为访问对象的字段。尝试
respondResult.addObject("entSetCharges",new EntSetCharges());在返回行上方添加。您的视图 不会 自动为您创建此对象。



