标签:sage cat res ret tchar content response font 拦截器
if(StringUtils.isEmpty(token)){
response.setCharacterEncoding("UTF-8");
response.setContentType("application/json; charset=utf-8");
PrintWriter out = null;
JSONObject res = new JSONObject();
res.put("success", false);
res.put("message", "请携带token");
out = response.getWriter();
out.append(res.toString());
return false;
}
标签:sage cat res ret tchar content response font 拦截器
原文地址:https://www.cnblogs.com/zhangjiahao/p/12356644.html