您的位置:首页 > 编程语言 > Java开发

Spring MVC Restful Method PUT @RequestParam NOT FOUND

2013-11-30 17:59 453 查看
Spirng MVC默认不支持 PUT请求带参数

Since Spring 3.1, this is resolved using org.springframework.web.filter.HttpPutFormContentFilter.

<filter>
<filter-name>httpPutFormContentFilter</filter-name>
<filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>httpPutFormContentFilter</filter-name>
<servlet-name>rest</servlet-name>
</filter-mapping>


出自 :http://stackoverflow.com/questions/5894270/springmvc-is-not-recognizing-request-body-parameters-if-using-put
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐