Skip to content

Instantly share code, notes, and snippets.

View bofei222's full-sized avatar

Boris bofei222

View GitHub Profile
@bofei222
bofei222 / filter
Created October 14, 2022 07:19
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();