天天看点

通过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

继续阅读