同一個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