Created
October 14, 2022 07:19
-
-
Save bofei222/5b95f96d23ac91f1eaf2ffa0e915398d to your computer and use it in GitHub Desktop.
filter
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
filterChain.doFilter(requestWrapper,responseWrapper); | |
// System.out.println("=====执行了GraphqlFilter的["+methodName+"]方法"); | |
servletResponse.setContentType("application/json;charset=UTF-8"); | |
ServletOutputStream outputStream = servletResponse.getOutputStream(); | |
outputStream.write(responseWrapper.getContent()); | |
outputStream.flush(); | |
outputStream.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment