标签:input str rabbit instance use 分析 get ken 指正
记一次RabbitMQ,使用Jackson反序列化的报错;
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `[B` out of START_OBJECT token
at [Source: (String)"{"id":1,"userName":"jack","name":"lili"}"; line: 1, column: 1]
先上代码:
RabbitMQ的配置类就不上了,基本配置
还是没找到原因,主要应该是反序列化失败,我修改了监听端的参数,接收Message对象,手动getBody,就可以接收到数据;
有大佬知道的,请指正,感谢!
【RabbitMQ】反序列化失败 com.fasterxml.jackson.databind.exc.MismatchedInputException
标签:input str rabbit instance use 分析 get ken 指正
原文地址:https://www.cnblogs.com/mussessein/p/12106553.html