添加Maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
配置
endpoints:
shutdown:
enabled: true
sensitive: false
management:
context-path: /manage
port: 8888
address: 127.0.0.1
关闭
curl -X POST localhost:8888/manage/shutdown