消息监听方法定义返回值,消息无法出列,一直报错:Caused by: org.springframework.amqp.AmqpException: Cannot determine ReplyTo message property value: Request message does not contain reply-to property, and no default response Exchange was set.
我想要使用@CachePut接收生产者发送的id去查询数据库数据然后保存到redis里,方法又需要有返回值,这两者冲突如何解决?
监听器里面再去调用缓存的方法,把缓存的内容抽成一个独立的方法