【发布时间】:2019-08-28 21:16:34
【问题描述】:
JmsTemplate 中的defaultDestinationName 属性有什么意义?即使这个字段的值为null 我也可以发送消息。
【问题讨论】:
-
如果您在没有实际目的地的情况下使用发送方法,这就是正在使用的目的地。因此名称
defaultDestinationName...
JmsTemplate 中的defaultDestinationName 属性有什么意义?即使这个字段的值为null 我也可以发送消息。
【问题讨论】:
defaultDestinationName...
你可以在没有defaultDestinationName的情况下发送消息(实际上jmstemplate中没有这样的属性)。 在这种情况下,您应该在 convertAndSend() 或 send() 方法中指定目的地。
【讨论】: