赞
踩
基于 spring 4.3.16.RELEASE和spring-rabbit 1.7.8.RELEASE
<dependency>
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit</artifactId>
<version>1.7.8.RELEASE</version>
</dependency>
对于队列参数值的类型需要小心,必须单独指定,具体可见配置死信队列ttl超时时间出的方式
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit-1.7.xsd">
<bean id="jsonMessageConverter" class="org.springframework.amqp.support.converter.Jackson2JsonMessageConverter" />
<rabbit:connection-factory
id="connectionFactory"
host="127.0.0.1"
port&
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。