| | |
| | | } |
| | | |
| | | String url = httpServletRequest.getRequestURI(); |
| | | log.info("拦截的url是{}",url); |
| | | if ("/user/upload.do".equals(url)) { |
| | | return true; |
| | | } |
| | |
| | | httpServletResponse.setCharacterEncoding("UTF-8"); |
| | | httpServletResponse.setContentType("application/json;charset=UTF-8"); |
| | | PrintWriter writer = httpServletResponse.getWriter(); |
| | | writer.print( new Gson().toJson(ServerResponse.createByErrorCodeMsg(401,googleTranslateUtil.translate("请登录",lang )))); |
| | | writer.print( new Gson().toJson(ServerResponse.createByErrorCodeMsg(401,"请登录"))); |
| | | writer.flush(); |
| | | writer.close(); |
| | | return false; |