spring-common-rabbitmq.xml
1.39 KB
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/rabbit
http://www.springframework.org/schema/rabbit/spring-rabbit.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--<bean id="simpleMessageConverter-common" class="org.springframework.amqp.support.converter.SimpleMessageConverter"/>-->
<!--<rabbit:connection-factory id="rabbitmq-connectionFactory-common" addresses="${rabbit_common:127.0.0.1:5672}"-->
<!--username="${rabbit_common_user:yoho}" password="${rabbit_common_password:yoho}"-->
<!--virtual-host="${rabbit_vhost:yoho}"/>-->
<!--<rabbit:template id="amqpTemplate-common" connection-factory="rabbitmq-connectionFactory-common"-->
<!--message-converter="simpleMessageConverter-common"/>-->
<!--<!–发送消息 –>-->
<!--<bean id="producerTemplate-common" class="com.yoho.gateway.common.mq.YhProducerTemplateCommon">-->
<!--<property name="amqpTemplate" ref="amqpTemplate-common"/>-->
<!--<property name="asyncEnable" value="false"></property>-->
<!--</bean>-->
</beans>