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.
Top comments (0)