springBoot关闭

pom文件linux

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

application.ymlspring

endpoints:
   shutdown:
    enabled: true   #启用shutdown
    sensitive: false

linux命令json

curl -X POST host:port/shutdown
相关文章
相关标签/搜索