<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
properties
management.endpoint.health.enabled=true
management.endpoints.web.exposure.include=*
management.endpoints.web.exposure.include=auditevents
spring.devtools.restart.enabled=false
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
@Endpoint(id = "custom")
public class CustomEndpoint {
@ReadOperation
public String customOperation() {
return "This is a custom operation.";
}
}