AsyncRequestTimeoutException in Spring Boot

By | August 7, 2018

If you using asynchronous programming with observable streams in spring boot, i suggest you to setup async request timeout because default async request timeout in spring boot 2.0 is 10 second. You will got an exception (AsyncRequestTimeoutException) when request is more than 10 second.

AsyncRequestTimeout

AsyncRequestTimeoutException in Spring Boot

My suggestion is 60s or 120s (s mean second) :

spring.mvc.async.request-timeout=60s

That is how to handle “AsyncRequestTimeoutException in Spring Boot”.

Leave a Reply

Your email address will not be published. Required fields are marked *