- add maven dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
- modify application.properties(.yml)
- springboot1
endpoints.shutdown.enabled=true endpoints.shutdown.sensitive=false
- springboot2
management: endpoint: shutdown: enabled: true endpoints: web: exposure: include: shutdown