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 刷新配置文件
重新发送请求。成功刷新配置。

相关文章:

  • 2022-01-30
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2021-08-10
  • 2021-10-02
猜你喜欢
  • 2021-08-11
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案