File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11###32 .1.5 发送消息
22
3- Spring的JmsTemplate会被自动配置,你可以将它直接注入到你自己的beans中 :
3+ Spring的 ` JmsTemplate ` 会被自动配置,你可以将它直接注入到自己的beans中 :
44``` java
55import org.springframework.beans.factory.annotation.Autowired ;
66import org.springframework.jms.core.JmsTemplate ;
@@ -16,4 +16,4 @@ this.jmsTemplate = jmsTemplate;
1616}
1717```
1818
19- ** 注** : [ JmsMessagingTemplate] ( http://docs.spring.io/spring/docs/4.1.4 .RELEASE/javadoc-api/org/springframework/jms/core/JmsMessagingTemplate.html ) (Spring4.1新增的)也可以使用相同的方式注入
19+ ** 注** 你可以使用相同方式注入 [ JmsMessagingTemplate] ( http://docs.spring.io/spring/docs/4.3.3 .RELEASE/javadoc-api/org/springframework/jms/core/JmsMessagingTemplate.html ) 。如果定义了 ` DestinationResolver ` 或 ` MessageConverter ` beans,它们将自动关联到自动配置的 ` JmsTemplate ` 。
You can’t perform that action at this time.
0 commit comments