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