...
|
...
|
@@ -44,13 +44,13 @@ YhProducerTemplate.send()方法改成异步发送消息,首先写入jvm queue |
|
|
<!--发送消息 -->
|
|
|
<bean id="producerTemplateMine" class="com.yoho.core.message.YhProducerTemplate" primary="true">
|
|
|
<property name="amqpTemplate" ref="amqpTemplate"/>
|
|
|
<property name="enable" value="false"/>
|
|
|
<property name="asyncEnable" value="false"/>
|
|
|
</bean>
|
|
|
```
|
|
|
也可以这样配置
|
|
|
```
|
|
|
<bean id="producerTemplateMine" parent="producerTemplate">
|
|
|
<property name="enable" value="false"/>
|
|
|
<property name="asyncEnable" value="false"/>
|
|
|
</bean>
|
|
|
```
|
|
|
|
...
|
...
|
|