版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/dream_an/article/details/102610457
Spring AMQ 集成 RabbitMQ,使用postman调试topic报错
Caused by: org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Failed to invoke target method ‘receiveMessage’ with argument type = [class [B], value = [{[B@393264a4}]
Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)
原因是发送时编码问题,需要增加
content_encoding":"UTF-8","content_type":"text/plain"
认证配置 authorization