青之枫

springboot接收delete或者put方法体参数

 springboot默认配置了hiddenHttpMethodFilter(可以在springboot启动日志中看到)

 

因为hiddenHttpMethodFilter只会拦截get和post请求方式

所以请求方式为post

在提交请求参数里增加一个_method 参数 值为put或者delete,就可以访问到put或者delete接口了

posted on 2018-07-02 15:08  青之枫  阅读(5462)  评论(1编辑  收藏  举报

导航