最佳答案
你没有在你的输出字段中提供名称属性,如果你可以将它设置成这样它就会知道你正在引用这个名称为“image.name”的字段
<input type="hidden" th:field="${image.name}" name="image.name">
关于java - 在 Thymeleaf 中,如何获取 HTML 变量并将其发送到 Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52455149/