resolve java.lang.IllegalStateException: getOutputStream() has already been called for this respons

I just work with one Files compress and download method,all work prefect.When i request the method,the browser open form and begin download.But the log prins a ERROR as:

emmm…its look like getOutputStream() this method use agian,because my code use getOutputStream() to send file bytes,and when method end and return,the framework will use this method to send some defalut data,my code is:

so,when my method return,i use renderNull() this return type.and the renderNull() method just like return null.

点赞
  1. nn说道:
    Unknown Unknown Unknown Unknown

    :evil:

  2. zbzw说道:
    Google Chrome 63 Google Chrome 63 Windows 7 Windows 7

    you English very good

发表评论

电子邮件地址不会被公开。 必填项已用*标注