@RequestMapping(value = "/api/component/imgconf/getimgconf",method = {RequestMethod.POST, RequestMethod.GET})
@ResponseBody
public Object getImgConf(HttpServletRequest request,
@RequestParam(value = "downImageConfigRequest", required = true) String json){
//此處省略很多代碼
}
這樣終端發起請求的時候可以用post也可以用get。get的可以這樣請求/api/component/imgconf/getimgconf.do?json="參數值"