Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Warn about use of SimpleAsyncTaskExecutor for async requests [SPR-16203] #20751
The Spring MVC Java config and XML namespace allow configuring an
Now that the same executor is also used for blocking writes when streaming with
Rossen Stoyanchev commented
To make sure we're talking about the same thing, this is only required when streaming to the response (e.g. Server-Sent Events, or application/stream+json) via
This is not needed if you return a single value, such as
Michal Domagala commented
Yes we are talking about streaming case. I would like to say that usually Spring Boot configures automatically required infrastructure, so need to configure ThreadPoolTaskExecutor from scratch is not typical.
If autoconfiguration is not possible, sample in documentation with default settings and/or good practice would be useful.
Stéphane Nicoll commented
As of today actually and available in the next milestone of Spring Boot 2.1, see #1563 for more details. There will be a
In the meantime, I am afraid you'll have to implement