Spring Boot : Actuator
Mac
Posted on April 26, 2020
Use for monitor and manage running application.
Enable by adding dependency below.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Using HTTP endpoint
-
/actuator/health
- Return status of running application
-
/actuator/info
- Usually return blank but we can customize it in application.properties.
-
@project.version@
refer to version tag in pom.xml
info.app.version=@project.version@
info.app.name=Hello World
Using JMX
- This option is disable by default but we can enable by set
spring.jmx.enabled
totrue
- Data will be exposed under
org.springframework.boot
domain.
π πͺ π
π©
Mac
Posted on April 26, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.