In my spring project , I am receiving notifications from a notify service after I get a notification how do I display the notification data in my browser. Here is my code.
@RequestMapping(value = "/notify/userregister", method = RequestMethod.POST)
public ResponseEntity<String> registerNotification(@RequestBody @Valid RegistrationInfo registrationInfo) throws IOException {
if(registrationInfo != null && registrationInfo.getregistrationInfo()!= null && registrationInfo.getregistrationInfo.size() > 0 ){
for(int i=0;i<registrationInfo.getregistrationInfo.size();i++ ){
logger.info("registration notification data:"+registrationInfo.getregistrationInfo().get(i).getUserAccessId()+registrationInfo.getregistrationInfo().get(i).getRegistrationTime));
}
return new ResponseEntity<String>(HttpStatus.OK);
}
else{
return new ResponseEntity<String>(HttpStatus.NO_CONTENT);
}
}
when my server is running , the registration service sending notification data. I am able to see the data in log file and acknowledging registration service with 200 code. I want to display the notification data (Ex:registrationInfo.getregistrationInfo().get(i).getUserAccessId())in my browser. currently it is showing "Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback.there was an unexpected error....". How to get rid of this error message on my browser?