Replace response body using filter

后端 未结 1 1695
暗喜
暗喜 2021-01-15 18:57

I am trying to reproduce this example

I have code:

public void  doFilter(ServletRequest request,
                          ServletResponse response,
         


        
相关标签:
1条回答
  • 2021-01-15 19:34

    You should pass wrapper to doFilter method:

    chain.doFilter(request,capturingResponseWrapper);
    
    0 讨论(0)
提交回复
热议问题