No converter found for return value of type: class io.renren.utils.R
后台返回的code为0,代表成功,可是在浏览器却一直是500错误,点开错误链接可以看到下图所示的错误页面
No converter found for return value of type: class io.renren.utils.R
上图红框位置说明了,R对象的数据不能被转换成json返回给前端

解决方法:
添加jackson-databind包,@ResponseBody才可以将返回对象转换为json格式
No converter found for return value of type: class io.renren.utils.R


<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.5</version>
</dependency>

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-31
  • 2021-11-21
  • 2021-12-13
  • 2021-08-19
  • 2022-12-23
  • 2021-05-22
  • 2021-08-08
相关资源
相似解决方案