How to handle IO streams in Spring MVC

后端 未结 1 1102
一生所求
一生所求 2020-12-21 05:16

I have a method which returns ResponseEntity(InputStreamResource). In this method, I\'m getting InputStream from a file based on the filename input and then

相关标签:
1条回答
  • 2020-12-21 05:31

    The underlying class where this is handled is ResourceHttpMessageConverter and it closes the underlying input stream as is evident from here

    0 讨论(0)
提交回复
热议问题