springboot默认配置了hiddenHttpMethodFilter(可以在springboot启动日志中看到)
因为hiddenHttpMethodFilter只会拦截get和post请求方式
所以请求方式为post
在提交请求参数里增加一个_method 参数 值为put或者delete,就可以访问到put或者delete接口了
springboot默认配置了hiddenHttpMethodFilter(可以在springboot启动日志中看到)
因为hiddenHttpMethodFilter只会拦截get和post请求方式
所以请求方式为post
在提交请求参数里增加一个_method 参数 值为put或者delete,就可以访问到put或者delete接口了
转载于:https://www.cnblogs.com/xxbilibili/p/9253896.html