前后端分离Java统一响应返回格式
一共需要两个类,一个专门用来存储返回的状态码,一个专门用来存储返回结果ResultCode类public class ResultCode { public static Integer SUCCESS = 200; public static Integer ERROR = 500; public static Integer FORBIDDEN = 403; public static Integer UNAUTHORIZED = 401;}Resul.