Skip to content

Commit

Permalink
Update MxWebFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Aug 16, 2024
1 parent f5564ef commit 22178a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rxlib/src/main/java/org/rx/spring/MxWebFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

//ServletComponentScan
@Slf4j
@Order(Ordered.HIGHEST_PRECEDENCE)
@WebFilter(urlPatterns = "/*")
Expand All @@ -21,7 +22,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
if (Strings.startsWithIgnoreCase(servletRequest.getContentType(), HttpHeaderValues.APPLICATION_JSON)
&& !(servletRequest instanceof ContentCachingRequestWrapper)) {
servletRequest = new ContentCachingRequestWrapper((HttpServletRequest) servletRequest);
log.info("MxWebFilter exchange ContentCachingRequest");
// log.info("MxWebFilter exchange ContentCachingRequest");
}
filterChain.doFilter(servletRequest, servletResponse);
}
Expand Down

0 comments on commit 22178a0

Please sign in to comment.