@RequestMapping("/self/collect/{id}") @ResponseBody public String collect( @PathVariable("id") Integer itemId, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception { User user = getCurrentUser(); collectionMng.toggleCollect(user, itemId); return SUCC; }