We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发送延迟消息无效。 @OverRide public void run(String... args) throws Exception { // int count = 5; // for (int index = 1; index <= count; index++) { // source.output().send(MessageBuilder.withPayload("msg-" + index) // .setHeader("index", index).build()); // } source.output().send(MessageBuilder .withPayload(objectMapper.writeValueAsString(new Person(99, "Jim"))) .setHeader("index", 9999) .setHeader("DELAY", "5") .setHeader(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.APPLICATION_JSON) .build()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
发送延迟消息无效。
@OverRide
public void run(String... args) throws Exception {
// int count = 5;
// for (int index = 1; index <= count; index++) {
// source.output().send(MessageBuilder.withPayload("msg-" + index)
// .setHeader("index", index).build());
// }
source.output().send(MessageBuilder
.withPayload(objectMapper.writeValueAsString(new Person(99, "Jim")))
.setHeader("index", 9999)
.setHeader("DELAY", "5")
.setHeader(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.APPLICATION_JSON)
.build());
}
The text was updated successfully, but these errors were encountered: