- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
OutputStreamwithout holding up the Servlet container thread.
Note: when using this option it is highly recommended to
configure explicitly the TaskExecutor used in Spring MVC for executing
asynchronous requests. Both the MVC Java config and the MVC namespaces provide
options to configure asynchronous handling. If not using those, an application
can set the
taskExecutor property of
- Rossen Stoyanchev
writeToA callback for writing to the response body.
outputStream- the stream for the response body
IOException- an exception while writing