Instead, the FileInputStream hooked to the resource is buffered-read into a StreamingResponseBody.
Running
- Add files under ./files directory.
- Run: mvn clean install -DskipTests && docker build -t test/file-download . && docker-compose up.
- Test the application by opening localhost:8080/spring/file-name.ext.
- To test passing through Feign (ie: Frontend -> Backend -> Backend) to retrieve the file, open: http://localhost:8080/spring/bridged/file-name.ext.
Running using WebFlux
- Repeat the above, but replace /spring/ with /webflux/.