@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<mineproj.app.shared.contacts.CoreContacts> lstcorecontacts = coreContactsrepo.findAll(); responseBean.add("success", true); responseBean.add("message", "Successfully retrived "); responseBean.add("data", lstcorecontacts); return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus); }