前端:(黄色内容为必选项!!!)
axios({ url: "/access/getArr", method: "post", data: JSON.stringify([1,2,3,4]), headers: { "Content-Type": "application/json", }, });
后端:
@RequestMapping(value = "/getArr", method = RequestMethod.POST) @ResponseBody public Result getArr(@RequestBody String[] data) { //...return new Result(true, "success", 200); }
标签:springboot,前端,getArr,Result,数组,data,method From: https://www.cnblogs.com/laremehpe/p/17724490.html