tomcat多个springboot项目启动失败

  多个springboot项目打包成war包并放到tomcat下运行时出错了错误信息:

  

Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@4178572] with key 'statFilter

解决方案:

除了第一个springboot项目以外,需要在其他springboot项目的application.properties配置文件中 加上下面这句配置

spring.jmx.enabled=false

猜你喜欢

转载自www.cnblogs.com/bcde/p/11032484.html