private EmailService emailService;
@RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json")
public ResponseEntity<String> createFromJson(@RequestBody String json) {
Feedback feedback = Feedback.fromJsonToFeedback(json);
Message message=new Message();
message.setBody(feedback.getBody());
message.setReceiverEmail("kiranreddy2004@gmail.com");
message.setReceiverName("kiran");
message.setSenderEmail(feedback.getEmail());
message.setSubject("Todo : feedback");
emailService.send(message);
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Type", "application/json");
return new ResponseEntity<String>(headers, HttpStatus.CREATED);