In Spring properties files, you can't just specify a number for this property. You also need to specify a unit. So you can say spring.mvc.async.request-timeout=5000ms
or spring.mvc.async.request-timeout=5s
, both of which will give you a 5-second timeout.