Today if I want to expose my custom actuator endpoint I have to added below config in application.properties
management.endpoints.web.exposure.include=info,health,myAwesomeActuator
@Component
@Endpoint(id = "myAwesomeActuator")
public class MyAwesomeActuator {
@ReadOperation
public String test() {
return "Hello, from MyAwesomeActuator";
}
}
If I don't add above config Spring Boot by default expose only /health
and /info
endpoints
Is there any way where I can mark my actuator as by default exposed ?