Created
April 24, 2018 03:34
-
-
Save luanvuhlu/770f8cdad81ed71a9cab0bb623597bb9 to your computer and use it in GitHub Desktop.
Lo incomming request Spring Boot, Spring MVC
This file contains hidden or 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
@Bean | |
public Filter logFilter() { | |
CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter(); | |
filter.setIncludeQueryString(true); | |
filter.setIncludePayload(true); | |
filter.setMaxPayloadLength(5120); | |
return filter; | |
} |
This file contains hidden or 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
<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