I would like to supplement OP's answer with more detailed information, since I worked a bit before finally stumbled upon this solution, and there seems to be a lot of confusion regarding changes in the behavior of the drive with Spring Boot 2.
What has not changed
You must enable dependency for the spring boot drive
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
If you want to access the drive endpoints via HTTP, you also need to add a dependency to spring-boot-starter-web
, ,
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
, Spring Boot 2
, /health, /metrics .., . http://{host}:{port}/actuator. , , - , , /hello - actator /actuator /hello/actuator.
/actuator /actuator HATEOAS. Spring Boot 2 , HATEOAS application.yml
HTTP, .
:
/health /info, , Spring Security .
, /shutdown ( /health /info)
( ), , management.endpoints.web.exposure.include=* application.properties. , yml-.
- ,
endpoints.xyz, , management.xyz
. ,