同一个tomcat下部署多个springboot项目时,springboot项目无法正常启动的问题

1、描述

  将多个springboot项目分别打成war包部署到tomcat下,启动失败。

  日志中的错误如下:

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

2、解决方法

   需要在后续的springboot项目的application.properties(yml)文件中 加上下面这句配置

spring.jmx.enabled: false

猜你喜欢

转载自www.cnblogs.com/irobotzz/p/12291156.html
今日推荐