springmvc 接受参数

//选择省市区镇
@RequestMapping(value = "changeProvince", method = RequestMethod.POST)
@ResponseBody
   public JSONObject changeProvince(Model model, @RequestParam Integer id, @RequestParam String sel){
   JSONObject jsonObject = new JSONObject();
   List<AddressInfoModel> cityList = addressInfoStubService.findByParentId(id);
   jsonObject.put("success", true);
   jsonObject.put("cityList", cityList);
   jsonObject.put("sel", sel);
   return jsonObject;
}

猜你喜欢

转载自blog.csdn.net/qq_35781178/article/details/80560445
今日推荐