TOMCAT-Solve the conflict of multiple Spring Boot projects deployed in a Tomcat container

Spring Boot's spring.jmx resource management is turned on by default, and the use of two projects at the same time will conflict

Modify the configuration file: application.properties(yml)
Method 1:
Add in the project configuration: spring.jmx.enabled=false
Method 2:
Configure
spring.jmx.default-domain=project1
spring.jmx.default-domain respectively in the application =project2

To ensure that the domains are two different

Guess you like

Origin blog.csdn.net/qq_27946017/article/details/114260890