@RequestMapping(value = "/findAll", consumes = "application/json", method = RequestMethod.GET) @Override public HttpEntity<ResponseBean> findAll() throws SpartanPersistenceException, Exception { ResponseBean responseBean = new ResponseBean(); org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK; java.util.List<com.app.shared.authentication.Question> lstquestion = questionrepo.findAll(); responseBean.add("success", true); responseBean.add("message", "Successfully retrived "); responseBean.add("data", lstquestion); return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus); }