spring-boot-starter-actuator監控端點問題

在研究spring cloud config動態刷新配置的時候,需要用到spring-boot-starter-actuator監控模塊,actuator使用的是2.0.6版本。項目啓動後發現只有/health和/info端點,無法使用/refresh端點。 查閱官網後發現需要增加配置來暴露: 把/refresh端點暴露出來後,就可以通過POST 調/actuator/refresh來更新配置了。
相關文章
相關標籤/搜索