Spring Cloud Bus 无法 bus-refresh 问题
环境:Spring Cloud : Greenwich.RELEASESpring Cloud Config:2.1.0.RELEASESpring Cloud Bus:2.1.0.RELEASESpring Boot: 2.1.3.RELEASESpring boot Admin:2.1.3问题描述:...
环境:
Spring Cloud : Greenwich.RELEASE
Spring Cloud Config: 2.1.0.RELEASE
Spring Cloud Bus: 2.1.0.RELEASE
Spring Boot: 2.1.3.RELEASE
Spring boot Admin:2.1.3
问题描述:
Spring Cloud Config 通过 Spring Cloud Bus 配置更新.
通过 http://localhost:8888/actuator/bus-refresh 进行刷新提示 405错误
{
"timestamp": "2019-03-26T10:00:07.627+0000",
"status": 405,
"error": "Method Not Allowed",
"message": "Request method 'POST' not supported",
"path": "/actuator/bus-refresh"
}
通过 http://localhost:8888/actuator/ 没有 bus-refresh 链接 application.yml 也进行了配置
# 开放 bus-refresh 接口,以便配合 bus 实现 配置的动态刷新
management:
endpoints:
web:
exposure:
include: bus-refresh
最后折腾了很久 发现降到以下版本到没问题
Spring Cloud: Finchley.SR2
Spring Cloud Config: 2.0.2.RELEASE
Spring Cloud Bus: 2.0.0.RELEASE
Spring Boot: 2.0.8.RELEASE
spring-boot-admin-starter-client:2.0.5
最后发现原来 Spring Boot Admin:2.1.3.RELEASE 和 Spinrg Cloud Bus 2.1.0.RELEASE 最新有冲突
https://github.com/spring-cloud/spring-cloud-bus/issues/151
https://github.com/codecentric/spring-boot-admin/issues/1111
更多推荐
所有评论(0)