解决spring boot中rest接口404,500等错误返回统一的json格式

在开发rest接口时,咱们每每会定义统一的返回格式,列如:java { "status": true, "code": 200, "message": null, "data": [ { "id": "101", "name": "jack" }, { "id": "102", "name": "jason"
相关文章
相关标签/搜索