2023-09-15
web.xml
<!--请求方式过滤器--> <filter> <filter-name>HiddenHttpMethodFilter</filter-name> <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class> </filter> <filter-mapping> <filter-name>HiddenHttpMethodFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
index.html
<form th:action="@{/user}" method="post"> <input type="hidden" name="_method" value="put"> <input type="submit" value="修改"> </form><br>
标签:xml,web,HiddenHttpMethodFilter,请求,设置,put From: https://www.cnblogs.com/isDaHua/p/17704223.html