前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

作者头像
王小雷
发布2019-10-22 14:16:32
9230
发布2019-10-22 14:16:32
举报
文章被收录于专栏:王小雷王小雷

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/dream_an/article/details/102610457

Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

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"
  • 使用postman调试RabbitMQ topic 完整postman配置
在这里插入图片描述
在这里插入图片描述

认证配置 authorization

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-10-17 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档