In case of RestTemplate
, when the request gets timed out, Spring will throw ResourceAccessException. Underlying exception under that instance will be java.net.SocketTimeoutException
with message ‘Read timed out’.
In case of RestTemplate
, when the request gets timed out, Spring will throw ResourceAccessException. Underlying exception under that instance will be java.net.SocketTimeoutException
with message ‘Read timed out’.