如何在Spring Boot应用程序中为嵌入式tomcat启用jmx [英] How to enable jmx for embedded tomcat in spring boot application
本文介绍了如何在Spring Boot应用程序中为嵌入式tomcat启用jmx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Springboot应用程序中使用嵌入式tomcat,但是当我使用jmx通过jconsole获取mbeans时,我以后看不到任何tomcat bean,我发现我们必须通过配置conf文件来启用tomcat bean,但是正如我在使用嵌入式tomcat那样为嵌入式tomcat启用jmx
I am using embedded tomcat for springboot application but when i use jmx to get mbeans through jconsole i dont see any tomcat bean later i found that we have to enable tomcat bean by configuring it conf file but as i am using embedded tomcat how to enable jmx for embedded tomcat
推荐答案
启用tomcat MBean注册表:
Enable the tomcat MBean registry:
server.tomcat.mbeanregistry.enabled=true
这篇关于如何在Spring Boot应用程序中为嵌入式tomcat启用jmx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文