springboot表单提交不支持put,delete
项目中采用springboot搭配thymeleaf,有个更改和删除功能,结合RESTful风格,更改用put请求,删除用delete,代码书写如下:
更新提交部分:
<form class="form-horizontal" role="form" th:action="@{/all/user}" th:method="${usrInfo == null} ? post : put">
删除部分:
<form id="deleteForm" th:method="delete
原创
2021-09-09 10:50:41 ·
1063 阅读 ·
0 评论