Last active
March 10, 2016 01:04
-
-
Save garystafford/6c009bf2aa6f463c7316 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
@Autowired | |
@Output(OUTPUT) | |
private MessageChannel messageChannel; | |
@Value("${message}") | |
private String message; | |
@Description("Post new reservations using Spring Cloud Stream") | |
@RequestMapping(method = POST) | |
public void acceptNewReservations(@RequestBody Reservation r) { | |
Message<String> build = withPayload(r.getReservationName()).build(); | |
this.messageChannel.send(build); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment