栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

SpringCloudConfig使用/actuator/bus-refresh出现“status“: 405,“error“: “Method Not Allowed“ Post not allow

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

SpringCloudConfig使用/actuator/bus-refresh出现“status“: 405,“error“: “Method Not Allowed“ Post not allow

最近在研究SpringCloud,这应该是最新版本了吧,网上资料较少,记一下在使用SpringCloud Config自动更新配置spring-cloud-starter-bus-amqp时遇到的一个问题,与诸君共勉。

2021.0.0
2.6.2

自动配置时调用/actuator/bus-refresh接口,用POST方式时产生以下错误:

{
    "timestamp": "2022-01-01T14:42:41.767+00:00",
    "status": 405,
    "error": "Method Not Allowed",
    "path": "/actuator/bus-refresh"
}

后台服务报这个错误

Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]

这是因为版本更新的缘故,新版本应该使用/actuator/busrefresh,就不存在问题了。在网上找了好久没发现正解,希望能帮到大家。

哎。。。版本问题真是坑人,整了我一个晚上。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/692166.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号