1. 程式人生 > >Spring無法獲取到小程式put請求的引數

Spring無法獲取到小程式put請求的引數

新增過濾器即可

<filter>
    <filter-name>HttpMethodFilter</filter-name>
    <filter-class>org.springframework.web.filter.HttpPutFormContentFilter
    </filter-class>
</filter>
<filter-mapping>
    <filter-name>HttpMethodFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter
-mapping>