同一个tomcat部署多个项目导致启动失败


内容描述
在同一个tomcat部署多个打包成war包的项目导致启动失败,报错如下:

报错信息
Error starting ApplicationContext.
To display the conditions report re-run your application with 'debug' enabled.
24-Dec-2018 15:43:04.190 严重 [localhost-startStop-1] org.springframework.boot.SpringApplication.reportFailure Application run failed org.springframework.
jmx.export.UnableToRegisterMBeanException:
Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@78f7aca0] with key 'statFilter';
nested exception isjavax.management.InstanceAlreadyExistsException:
com.alibaba.druid.filter.stat:name=statFilter,type=StatFilter
1
2
3
4
5
6
7
解决方案
在项目的的application.properties(yml)文件中配置:

spring.jmx.enabled=false
yml文件:


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM