AmqpException: No method found for class [B

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 for class [B)