1、我返回一个自定义的结果集

springboot与layui数据交互

2、前端接收数据

springboot与layui数据交互

3、我自定义结果集的状态码

springboot与layui数据交互

4、这时候就会使得数据显示失败,因为默认成功状态码为0,而我这里是   1

两种解决方案

    1、将自定义状态码,改回来

springboot与layui数据交互

2、在前端修改默认成功状态码

springboot与layui数据交互

 

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2022-03-09
  • 2022-12-23
  • 2022-02-03
  • 2021-10-20
猜你喜欢
  • 2021-10-15
  • 2021-06-07
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
相关资源
相似解决方案