SpringCloud 踩坑之路之 ------actuator/bus-refresh 刷新配置文件

SpringCloud 踩坑之路之 ------actuator/bus-refresh 刷新配置文件

post请求刷新端点 返回415异常

SpringCloud 踩坑之路之 ------actuator/bus-refresh 刷新配置文件

解决方式

查看返回结果

“message”: “Content type ‘text/plain;charset=UTF-8’ not supported”,
如图所示,不支持的类型
端点请求需要json格式

在请求头添加一个Content-Type:application/json

SpringCloud 踩坑之路之 ------actuator/bus-refresh 刷新配置文件
重新发送请求。成功刷新配置。