@ResponseBody @RequestMapping(value = "/removestudent", method = RequestMethod.POST) public String removeStudent( @RequestParam("username") String username, @RequestParam("id") Long courseId) { groupService.removeUserFromGroup(username, courseId); return OK; }