package com.liuil.web.interceptor;

import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

@Component
public class LoginInterceptor implements HandlerInterceptor{
  public static Logger logger = Logger.getLogger(HandlerInterceptor.getClass());

  @Override
  public  boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws  Exception{
    logger.info("preHandler is called");
  }

}

@@ -243,16 +243,24 @@
 servlet.
+handler.
 HandlerI
@@ -269,16 +269,23 @@
 erceptor
+Adapter
 ;%0A%0A@Comp
@@ -324,17 +324,14 @@
 tor 
-implement
+extend
 s Ha
@@ -346,20 +346,30 @@
 erceptor
+Adapter 
 %7B%0A  
+//
 public s
@@ -407,23 +407,21 @@
 tLogger(
-Handler
+Login
 Intercep
@@ -575,16 +575,18 @@
 on%7B%0A    
+//
 logger.i
@@ -614,15 +614,32 @@
 lled%22);%0A
+    return true;%0A
   %7D%0A%0A%7D%0A

修改Login Interceptor