Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active February 17, 2016 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/331d3337b8df41899f73 to your computer and use it in GitHub Desktop.
Save garystafford/331d3337b8df41899f73 to your computer and use it in GitHub Desktop.
@RequestMapping(path = "/client-message", method = RequestMethod.GET)
public String getMessage() {
return this.message;
}
@RequestMapping(path = "/service-message", method = RequestMethod.GET)
public String getReservationServiceMessage() {
return this.restTemplate.getForObject(
"http://reservation-service/message",
String.class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment