tomcat同时部署两个SpringBoot应用出现的错误(以下是一些关键的地方):
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.logging.Log4jFilter@3cfdf82d] with key ‘log4jFilter’; nested exception is javax.management.InstanceAlreadyExistsException: com.alibaba.druid.filter.logging:name=log4jFilter,type=Log4jFilter
Caused by: javax.management.InstanceAlreadyExistsException: com.alibaba.druid.filter.logging:name=log4jFilter,type=Log4jFilter
解决方法:
spring:
profiles: prod
jmx:
default-domain: 你的domain