Last active
February 17, 2016 20:36
-
-
Save garystafford/331d3337b8df41899f73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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