springboot整合activeMQ时启动报 Unregistering JMX-exposed beans on shutdown 错误

在SpringBoot 1.5.9 RELEASE版本中整合ActiveMQ 5.15.10时,遇到启动报错问题。错误出现在启动项目时,提示'Unregistering JMX-exposed beans on shutdown'。分析发现错误原因是pom.xml文件中导入了错误的web包。解决方案是删除错误的依赖,并提供正确的pom文件配置,以及ActiveMQ的配置类和yml文件设置。
摘要由CSDN通过智能技术生成

环境

springboot 1.5.9 RELEASE
activeMQ 5.15.10

1. ActiveMQ下载启动

http://activemq.apache.org/download-archives.html ,本文用的是windows版的5.15.10版本,下载下来是压缩包,自行解压一个到目录下,CMD进入到解压目录下的bin目录下,执行 activemq.bat start 启动。
如果能成功访问http://localhost:8161/admin(用户名和密码默认为admin),则启动成功。

2.错误再现

在启动项目时直接报如下错误:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.9.RELEASE)

2019-10-31 15:43:00.733  INFO 1940 --- [           main] c.example.provider.ProviderApplication   : Starting ProviderApplication on my-THINK with PID 1940 (G:\lianxi\springboot\provider\target\classes started by my in G:\lianxi\springboot\provider)
2019-10-31 15:43:00.736  INFO 1940 --- [           main] c.example.provider.ProviderApplication   : No active profile set, falling back to default profiles: default
2019-10-31 15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值