Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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