Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.example.demo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.CommonsRequestLoggingFilter;
@Configuration
public class Config {
@Bean
public CommonsRequestLoggingFilter filter() {
CommonsRequestLoggingFilter filter
= new CommonsRequestLoggingFilter();
filter.setIncludeQueryString(true);
filter.setIncludePayload(true);
filter.setMaxPayloadLength(10000);
return filter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment