ConnectionFactory connectionFactory= RabbitMqConfig.connectionFactory();
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer(connectionFactory);
container.addQueueNames("aa");
container.setMessageListener(handleService);
按道理說已經添加了啊,監聽類、發送等每一個小模塊都試了沒問題,所以確定是沒有添加監聽成功。有沒有大佬解救一下
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/69366.html
標籤:Web 開發
