拦截器preHandle拦截接口没有权限返回()

/** * 响应信息 * * @param response 返回信息 */public static void response(HttpServletResponse response) {    response.setCharacterEncoding("UTF-8");    response.setContentType("application/json; charset=utf-8");    PrintWriter out;    try {        JSONObject res = new JSONObject();        res.put("code", 401);        res.put("message", "访问无权限");        out = response.getWriter();        out.append(res.toString());    } catch (Exception e) {        e.printStackTrace();    }}
————————
/** * 响应信息 * * @param response 返回信息 */public static void response(HttpServletResponse response) {    response.setCharacterEncoding("UTF-8");    response.setContentType("application/json; charset=utf-8");    PrintWriter out;    try {        JSONObject res = new JSONObject();        res.put("code", 401);        res.put("message", "访问无权限");        out = response.getWriter();        out.append(res.toString());    } catch (Exception e) {        e.printStackTrace();    }}