天天看點

通過Spring Cloud Bus配置Webhooks不能自動重新整理的問題"message":"No message available","path":"/monitor"

Spring Cloud Bus 一定要注意的問題

最近總是有技術交流群裡的群友問,使用github配置 Webhooks,config 配置自動重新整理的時候為什麼一直404,
{"timestamp":"2019-06-25T06:59:25.124+0000","status":404,"error":"Not Found","message":"No message available","path":"/monitor"}
           
拿到群友的demo,今天閑來實操了一把,發現很坑的一個問題,暴露出來的接口中并沒有/monitor 。再看pom檔案,發現服務端缺少了一個引入:
<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-config-monitor</artifactId>
        </dependency>
           

end

繼續閱讀