Springboot全配置
Continue reading
月度归档: 2017年7月
多个RabbitMQ在同一个服务器报错
Multiple RabbitMQ Application InstanceAlreadyExistsException。
出现这个异常的原因是,在一个服务器里面有多个项目都使用rabbitmq的时候MBean冲突:spring.jmx.default-domain。
解决方案
修改endpoints.jmx.domain 成一个不一样的名称:spring.jmx.hpserver
spring.jmx.default-domain=hpserver
endpoints.jmx.domain= hpserver