Skip to content

Commit 10b7273

Browse files
authored
Update 32.1.5 Sending a message.md
1 parent e2dcd90 commit 10b7273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IV. Spring Boot features/32.1.5 Sending a message.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
###32.1.5 发送消息
22

3-
Spring的JmsTemplate会被自动配置,你可以将它直接注入到你自己的beans中
3+
Spring的`JmsTemplate`会被自动配置,你可以将它直接注入到自己的beans中
44
```java
55
import org.springframework.beans.factory.annotation.Autowired;
66
import 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`

0 commit comments

Comments
 (0)