406 Could not find acceptable representation

网上有说很多前端或者后端修改请求头的方式,但是不适合我这种情况。

我的问题是重写了WebMvcConfigurationSupport的configureMessageConverters方法造成的。

Swagger配置问题,如下:

解决406报错:Could not find acceptable representation

修改后:

解决406报错:Could not find acceptable representation

相关文章:

  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-29
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案