多参数传递
页面
axios.post(
"path",{param1:this.param1,param2:this.param2},
{headers: {'Content-Type': 'application/json; charset=utf-8'}}
).then(function (res) {
console.log(res);
}).catch(function (error) {
alert("调用失败");
})
后台接口
controller层
在方法参数中加上接收参数
@RequestBody Map<String,Object> param
方法中
param.get("param1");
param.get("param2");