Can I have two (or more) Spring-boot applications running on the same Tomcat?
I have two applications packaged in files war
, and I would like to run them on the same Tomcat server. However, when deploying them, I get the following exception:
org.springframework.jmx.export.UnableToRegisterMBeanException:
Unable to register MBean [org.springframework.boot.actuate.endpoint.jmx.DataEndpointMBean@2361d8ee] with key 'dumpEndpoint';
nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.boot:type=Endpoint,name=dumpEndpoint
The default endpoints that each Spring-boot application registers (e.g. / health, etc.) conflict. Is there any solution for this or is it impossible to complete this setup?
Thanks for any answers!
source
share