springboot獲取前端傳輸過來的一個list

web端web

admin.req({
url: layui.setter.apiUrl + '/choose/house',
type: 'post',
data: JSON.stringify(chooseData.holist),
contentType: "application/json",
success: function(res) {json

}
                          });

Java端api

@RequestMapping(value = "house", method = RequestMethod.POST)
public ResultDataUtil chooseHouse(@RequestBody List<BaseHouse> list) {
return ResultDataUtil.isOk(null);
}app

相關文章
相關標籤/搜索