Skip to content

Instantly share code, notes, and snippets.

@bofei222
Created October 14, 2022 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bofei222/5b95f96d23ac91f1eaf2ffa0e915398d to your computer and use it in GitHub Desktop.
Save bofei222/5b95f96d23ac91f1eaf2ffa0e915398d to your computer and use it in GitHub Desktop.
filter
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