springboot使用的版本是
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
springboot和activemq的启动包也是1.5.9版本
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-activemq</artifactId>
<version>1.5.9.RELEASE</version>
</dependency>
activemq的包注意要使用5.14以下的包,以上的不兼容队列和主题模式的同时在应用中存在
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.13.3</version>
</dependency>
基础配置
spring.activemq.broker-url=tcp://127.0.0.1:61616
spring.activemq.user=admin
spring.activemq.password= admin
spring.activemq.pool.enabled= false
#集群配置
#spring.activemq.broker-url=failover:(tcp://172