如何在Spring Cloud Stream Rabbit中保证交付。我的代码如下:
class Source {
MessageChannel output;
Repository repo;
@Transactional
void publisher(Command command){
repo.save(command);
output.send(MessageBuilder
.withPayload(new Event()).build());
}
}
class Sink {
@StreamListener(Event.class)
void eventListener(Event event){
// method body
}
}任何帮助都是非常感谢的。
https://stackoverflow.com/questions/44417191
复制相似问题