【发布时间】:2019-05-13 06:44:09
【问题描述】:
这段代码发送了get请求,为什么?
<form th:action="@{/books/edit/rename}" th:object="${book}" th:method="POST">
<input type="text" id="id" name="id" th:value="*{id}" value="1"/>
<input type="text" id="bookName" name="bookName" th:value="*{bookName}" value="nameExample"/>
<button type="submit">Rename for model</button>
</form>
【问题讨论】:
-
有没有可能有一些js处理那个表单?
-
在浏览器中使用查看源代码并包含浏览器看到的源代码。
标签: java spring post get thymeleaf