Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CommonsRequestLoggingFilterを使ったログ出力
@Configuration(proxyBeanMethods = false)
public class RequestLoggingFilterConfig {
@Bean
public CommonsRequestLoggingFilter logFilter() {
CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter();
filter.setIncludeQueryString(true);
filter.setIncludePayload(true);
filter.setMaxPayloadLength(10000);
filter.setIncludeHeaders(false);
filter.setAfterMessagePrefix("Request data : ");
return filter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment