尝试去POSThttp://localhost:3344/actuator/bus-refresh
发现:
"status": 405,
"error": "Method Not Allowed",
"message": "Request method 'POST' not supported",
"path": "/actuator/bus-refresh"
并且配置文件并没有更新,emm!
但是其实新版本,post链接不是这个了,去掉了-,现在是
http://localhost:3344/actuator/busrefresh
成功!
本文探讨了如何在Spring Boot中正确使用bus-refresh API,最初尝试POST请求失败,发现接口已更新,需用新URL。最终通过更改为HTTP GET方法并提供正确的URL实现刷新。
1万+

被折叠的 条评论
为什么被折叠?



