How to get response body in Zuul post filter?

前端 未结 6 1270
时光说笑
时光说笑 2021-01-04 06:55

How it is possible to read a response body while using Zuul as a proxy in post filter?

I am trying to call the code like this:

@Componen         


        
6条回答
  •  臣服心动
    2021-01-04 07:56

    Be careful with the filterNumber

    Using anything greater than 1000 leads to an "InputStream already closed" error because the response body has already been read and

    I used the number 10 and worked fine

提交回复
热议问题