package org.jbb.lib.mvc.interceptors;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Slf4j
public class RequestTimeInterceptor extends HandlerInterceptorAdapter {

    private final static String REQUEST_START_TIME_ATTRIBUTE = "interceptor_request_start_time";

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        long startTime = System.currentTimeMillis();
        request.setAttribute(REQUEST_START_TIME_ATTRIBUTE, startTime);

        return true;
    }

    @Override
    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {

        long startTime = (long) request.getAttribute(REQUEST_START_TIME_ATTRIBUTE);
        long currentTime = System.currentTimeMillis();
        long requestTime = currentTime - startTime;

        log.info("Request URL " + request.getRequestURL() + ", execution time : " + requestTime);

    }
}

@@ -1,8 +1,290 @@
+/*%0A * Copyright (C) 2016 the original author or authors.%0A *%0A * This file is part of jBB Application Project.%0A *%0A *  Licensed under the Apache License, Version 2.0 (the %22License%22);%0A *  You may obtain a copy of the License at%0A *        http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0A
 package 
@@ -319,42 +319,8 @@
 ;%0A%0A%0A
-import lombok.extern.slf4j.Slf4j;%0A
 impo
@@ -436,16 +436,16 @@
 equest;%0A
-
 import j
@@ -484,16 +484,51 @@
 ponse;%0A%0A
+import lombok.extern.slf4j.Slf4j;%0A%0A
 @Slf4j%0Ap
@@ -1366,61 +1366,72 @@
 URL 
-%22 + request.getRequestURL() + %22, execution time : %22 +
+%7B%7D , execution time : %7B%7D milliseconds%22, request.getRequestURL(),
  req

Fix review issues