public class RequestInterceptor {
private static final Logger logger = Logger.getLogger("requestLogger"); (1)
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
logger.info("Received request from user: " + request.getRemoteUser()); (2)
return true;
}
}