23.10 Admin features

Spring Boot应用远程管理
本文介绍如何通过设置spring.application.admin.enabled属性启用Spring Boot应用的远程管理功能。这将暴露SpringApplicationAdminMXBean到MBeanServer平台上,从而允许远程管理Spring Boot程序。此外,还可以通过local.server.port属性获取应用运行的HTTP端口。



通过指定 spring.application.admin.enabled 属性,可以使行政相关的特点 。这暴露了在 MBeanServer 平台上的 SpringApplicationAdminMXBean 。可以使用此功能来远程管理Spring Boot程序。这对任何服务包装器实现也是有用的 。

  • 如果你想知道,应用程序正在运行在哪个HTTP端口 ,可以通过local.server.port获取。
  • 启用此功能时,作为MBean暴露的关机方法应用要注意

原文:

23.10 Admin features

It is possible to enable admin-related features for the application by specifying thespring.application.admin.enabled property. This exposes theSpringApplicationAdminMXBeanon the platform MBeanServer. You could use this feature to administer your Spring Bootapplication remotely. This could also be useful for any service wrapper implementation.

[Tip]

If you want to know on which HTTP port the application is running, get the propertywith key local.server.port.

[Note]

Take care when enabling this feature as the MBean exposes a method to shutdown theapplication.



没太看懂到底是干啥的,貌似可以用这个接口去实现一些管理发布的功能。,等哪天弄明白在回来修改。






评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值