变量名后的括号内放request是什么意思 例如:Map<String,Object> saveDynamic ){int userId = uid(req)}
@RequestMapping("saveDynamic")@ResponseBodypublicMap<String,Object>saveDynamic(HttpSe...
@RequestMapping("saveDynamic")
@ResponseBody
public Map<String,Object> saveDynamic(
HttpServletRequest req,
@RequestParam("CONTEXT")String dynamicContext,
@RequestParam("BIGURL")String photoUrlBig,
@RequestParam("SMALLURL")String photoUrlSmall
){
int userId = uid(req);
} 展开
@ResponseBody
public Map<String,Object> saveDynamic(
HttpServletRequest req,
@RequestParam("CONTEXT")String dynamicContext,
@RequestParam("BIGURL")String photoUrlBig,
@RequestParam("SMALLURL")String photoUrlSmall
){
int userId = uid(req);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询