Created
October 26, 2020 21:57
-
-
Save NutterzUK/20cc3997c8af0876d29219f9a5d3abd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
public class LogFilter extends OncePerRequestFilter { | |
private static Logger LOG = LoggerFactory.getLogger(LogFilter.class); | |
@Override | |
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) | |
throws ServletException, IOException { | |
LOG.info(request.getRequestURI()); // log the request path. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment