// java
// postmanAjax
@RequestMapping("/purchase")
public ApiResult purchase(@RequestParam Integer invoiceTypeId, @RequestBody List<GoodsOutInDetailVo> list) {
return ApiResultUtil.Success(invoiceTypeId.toString(),list);
}
postmanAjax
// java
// postmanAjax
@RequestMapping("/purchase")
public ApiResult purchase(@RequestParam Integer invoiceTypeId, @RequestBody List<GoodsOutInDetailVo> list) {
return ApiResultUtil.Success(invoiceTypeId.toString(),list);
}
postmanAjax
@ Response
is placed in the request body, such as upstairs; @ RequestParam
is placed in the url parameter
Previous: What if I can't delete vue-cli?
Next: How does the vue single-page application manage global events?