| | |
| | | response.setStatus(HttpServletResponse.SC_OK); |
| | | return true; |
| | | } |
| | | HandlerMethod h = (HandlerMethod)handler; |
| | | ValueAuth annotation = h.getMethodAnnotation(ValueAuth.class); |
| | | if(annotation!=null){ |
| | | try { |
| | | HandlerMethod h = (HandlerMethod)handler; |
| | | ValueAuth annotation = h.getMethodAnnotation(ValueAuth.class); |
| | | if(annotation!=null){ |
| | | return true; |
| | | } |
| | | }catch (Exception e){ |
| | | return true; |
| | | } |
| | | String[] strs = request.getRequestURL().toString().split(serverPort); |
| | |
| | | |
| | | @Override |
| | | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { |
| | | // System.out.println("-------------------------拦截器校验通过---------------------------"); |
| | | |
| | | } |
| | | |
| | | private List<String> list; |
| | |
| | | |
| | | list.add("/user/enter"); |
| | | list.add("/user/refresh"); |
| | | list.add("/outPath/**"); |
| | | this.list = list; |
| | | } |
| | | |