Skip to content

Instantly share code, notes, and snippets.

@luanvuhlu
Created April 24, 2018 03:34
Show Gist options
  • Save luanvuhlu/770f8cdad81ed71a9cab0bb623597bb9 to your computer and use it in GitHub Desktop.
Save luanvuhlu/770f8cdad81ed71a9cab0bb623597bb9 to your computer and use it in GitHub Desktop.
Lo incomming request Spring Boot, Spring MVC
@Bean
public Filter logFilter() {
CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
filter.setIncludeQueryString(true);
filter.setIncludePayload(true);
filter.setMaxPayloadLength(5120);
return filter;
}
<logger name="org.springframework.web.filter.CommonsRequestLoggingFilter" level="DEBUG"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment