【发布时间】:2016-08-05 01:25:21
【问题描述】:
由于您不倾向于编写执行器控制器,它们是为您编写的,您将如何添加,例如 cache-control: nocache 到 /health?
【问题讨论】:
标签: spring spring-mvc spring-boot spring-java-config spring-boot-actuator
由于您不倾向于编写执行器控制器,它们是为您编写的,您将如何添加,例如 cache-control: nocache 到 /health?
【问题讨论】:
标签: spring spring-mvc spring-boot spring-java-config spring-boot-actuator
...响应被缓存一段可配置的时间,以防止端点被用于拒绝服务攻击。
endpoints.health.time-to-live属性用于配置缓存周期(以毫秒为单位)。它默认为 1000,即一秒。
这仅适用于 /health 端点,但是,其他执行器端点似乎没有此属性。
【讨论】: