当我试图推动主题此格式/主题/推/ {organizationId}我得到一个错误RabbitMQ的主题格式 - 下主要话题子话题
messagingTemplate.convertAndSend("/topic/pushing/" + obj.getCustomerid(), obj);
错误:
15:06:48.901 [reactor-tcp-io-1] ERROR o.s.m.s.s.StompBrokerRelayMessageHandler - Received ERROR {message=[Invalid destination], content-type=[text/plain], version=[1.0,1.1,1.2], content-length=[53]} session=system text/plain payload='/pushing/2963_ent' is not a valid topic destination
然而,当我将其更改为这种格式/topic/pushing.{organizationId},取代与点的斜线,它的正常工作:
messagingTemplate.convertAndSend("/topic/pushing." + obj.getCustomerid(), obj);
任何想法如何保持斜线/和主题下的子主题。