// Get all comments @RequestMapping(value = "/comment/getcomments/question/{questionid}", method = RequestMethod.GET) public @ResponseBody List<Comment> GetComments(@PathVariable int questionid) { return commentService.GetComments(questionid); }