@Component @RabbitListener(queues = "hello") public class RabbitReceiver { @RabbitHandler public void receive(String in) { System.out.println("Received '" + in + "'"); } }
欢迎关注公众号算法小生或沈健的技术博客