美文网首页
AmqpException: No method found f

AmqpException: No method found f

作者: 孙明辉 | 来源:发表于2021-06-21 16:07 被阅读0次

AmqpException: No method found for class [B
@RabbitListener注解标注在方法上面就可以在方法中捕捉到异常了

@Component
public class listener {
    @RabbitListener(queues = "queue")
    @RabbitHandler
    public void produce(String msg) {
        System.out.println("msg : " + msg);
    }
}

相关文章

网友评论

      本文标题:AmqpException: No method found f

      本文链接:https://www.haomeiwen.com/subject/pjbyyltx.html