springboot接收delete或者put方法体参数
时间:2018-07-02 15:22:29
收藏:0
阅读:573
springboot默认配置了hiddenHttpMethodFilter(可以在springboot启动日志中看到)

因为hiddenHttpMethodFilter只会拦截get和post请求方式
所以请求方式为post
在提交请求参数里增加一个_method 参数 值为put或者delete,就可以访问到put或者delete接口了
原文:https://www.cnblogs.com/xxbilibili/p/9253896.html
评论(0)