SpringCloud 端點(diǎn)

2023-06-07 15:36 更新

對(duì)于Spring Boot Actuator應(yīng)用程序,可以使用一些其他管理端點(diǎn)。您可以使用:

  • 從?POST?到?/actuator/env?以更新?Environment?并重新綁定?@ConfigurationProperties?和日志級(jí)別。
  • ?/actuator/refresh?重新加載引導(dǎo)上下文并刷新?@RefreshScope beans?。
  • ?/actuator/restart?關(guān)閉?ApplicationContext?并重新啟動(dòng)(默認(rèn)情況下禁用)。
  • ?/actuator/pause?和?/actuator/resume?用于調(diào)用?Lifecycle?方法?(ApplicationContext?中的?stop()?和?start()?)。

 如果禁用/actuator/restart端點(diǎn),則/actuator/pause/actuator/resume端點(diǎn)也將被禁用,因?yàn)樗鼈冎皇?/span>/actuator/restart的特例。


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)