java后台接收不到delete请求发送的参数

解决方案十分简单,只需要改写你的js请求的方式:

 $('#btn_delete').on("click",function () {
                    $.ajax({
                        type: "POST",
                        url: "/order",
                        data: { "number":"1001",_method: 'DELETE'},
                        success: function(data){
    
                        }
                    });
                })

猜你喜欢

转载自blog.csdn.net/july_young/article/details/82346365