org.springframework 5.1之后使用 FormContentFilter 代替 HttpPutFormContentFilter
前端使用PUT发送的请求的时候,需要在web.xml中配置HttpPutFormContentFilter,但是突然发现这个filter过期了
官方文档介绍使用这个新的过滤器,并且支持DELETE方法
<filter>
<filter-name>FormContentFilter</filter-name>
<filter-class>org.springframework.web.filter.FormContentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>FormContentFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>