【发布时间】:2018-06-19 22:31:49
【问题描述】:
我创建了 hello world Spring Boot v2.0.0.M7 应用程序,添加了执行器,启用了关闭功能,但它无法正常工作。
application.properties
server.port=8082
endpoint.shutdown.enabled=true
endpoint.shutdown.sensitive=false
健康状况良好
但不是关机
我做错了什么?
【问题讨论】:
-
我可能错了,但我认为您必须 POST 到关闭端点。可能重复:stackoverflow.com/questions/45700355/…
-
@Marged 官方文档有提到这个吗?我怎么会知道呢? docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/…
-
像 Andy 确认的那样:文档中有说明
标签: spring-boot spring-boot-actuator