I have an sync endpoint defined as follows:
@PostMapping(\"/some/url/\")
@ResponseBody
public Future something(...) {
... do stuff ...
}
You can return WebAsyncTask that supports timeout.
From docs: For a Callable, you can use WebAsyncTask to provide a timeout value
Can you please try to add below property in application.properties.
spring.mvc.async.request-timeout = # Amount of time (in milliseconds) before asynchronous request handling times out.