使用spring-amqp结合使用rabbitmq
maven 依赖包配置如下:
public class Foo { public void listen(String foo) { System.out.println(foo); }}