解决Spring Boot应用无法部署在同一个容器中的问题

症状:

在同一个tomcat下部署两个不同的spring boot应用项目,结果服务器启动时报出了:

javax.management.InstanceAlreadyExistsException

解决方法:

在每个项目的application.properties中添加配置项:

spring.jmx.default-domain=**** (不同项目此名区别开)


猜你喜欢

转载自blog.csdn.net/softwave/article/details/80331110