Caused by: javax.management.InstanceAlreadyExistsException: xxx

拼搏现实的明天。 2023-06-17 05:53 125阅读 0赞

Caused by: javax.management.InstanceAlreadyExistsException: xxx

解决方法:

一个tomcat启动多个springboot项目时会报以下错误:

Caused by: javax.management.InstanceAlreadyExistsException: org.springframework.amqp.rabbit.connection:name=rabbitConnectionFactory,type=CachingConnectionFactory

Spring Boot的spring.jmx资源管理是默认打开的,而两个springboot项目同时使用会冲突,要保证domain是两个不一样的

办法1:http://yayihouse.com/yayishuwu/chapter/2296

发表评论

表情:
评论列表 (有 0 条评论,125人围观)

还没有评论,来说两句吧...

相关阅读