互联网创业就是做网站吗,Wordpress博客怎么盈利,友情链接导航,货代如何做亚马逊和速卖通网站SpringBoot之Actuator的两种监控模式 springboot提供了很多的检测端点(Endpoint),但是默认值开启了shutdown的Endpoint#xff0c;其他默认都是关闭的,可根据需要自行开启 文章目录 SpringBoot之Actuator的两种监控模式1. pom.xml2. 监控模式1. HTTP2. JMX 1. pom.xml
de…SpringBoot之Actuator的两种监控模式 springboot提供了很多的检测端点(Endpoint),但是默认值开启了shutdown的Endpoint其他默认都是关闭的,可根据需要自行开启 文章目录 SpringBoot之Actuator的两种监控模式1. pom.xml2. 监控模式1. HTTP2. JMX 1. pom.xml
dependencygroupIdspringframework.boot/groupIdartifactIdspring-boot-actuator/artifactIdversion3.0.6/version/dependency2. 监控模式 SpringBootActuator有两种监控模式Http与JMX HTTP: 默认值暴露health、info等Endpoint JMX默认暴露所以的Endpoint 除了health、info等Endpoint外剩下的都应该进行保护访问如果引入SpringSecurity,则会默认配置安全访问规则 1. HTTP 启动工程后打开浏览器访问 http://localhost:8080/actuator/health
http://localhost:8080/actuator/info
2. JMX jdk自带的 jconsole命令查看JMX监控信息 打开命令cmd窗口输入jconsole如下