How to set number of http request retries when using RestTemplateBuilder?

I load data from another server, after some time of loading I get this errors:

Oct 12 08:08:37 user myapp.jar[11151]: 2017-10-12 10:08:37.215  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : I/O exception (org.apache.http.NoHttpResponseException) caught when to processing request to {}->http://197.97.1.97:80: The target server failed to respond
Oct 12 08:08:37 user myapp.jar[11151]: 2017-10-12 10:08:37.217  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : Retrying request to {}->http://197.97.1.97:80
Oct 12 08:18:37 user myapp.jar[11151]: 2017-10-12 10:18:37.215  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : I/O exception (org.apache.http.NoHttpResponseException) caught when to processing request to {}->http://197.97.1.97:80: The target server failed to respond
Oct 12 08:18:37 user myapp.jar[11151]: 2017-10-12 10:18:37.217  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : Retrying request to {}->http://197.97.1.97:80
Oct 12 08:28:37 user myapp.jar[11151]: 2017-10-12 10:28:37.215  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : I/O exception (org.apache.http.NoHttpResponseException) caught when to processing request to {}->http://197.97.1.97:80: The target server failed to respond
Oct 12 08:28:37 user myapp.jar[11151]: 2017-10-12 10:28:37.217  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : Retrying request to {}->http://197.97.1.97:80
Oct 12 08:38:37 user myapp.jar[11151]: 2017-10-12 10:38:37.215  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : I/O exception (org.apache.http.NoHttpResponseException) caught when to processing request to {}->http://197.97.1.97:80: The target server failed to respond
Oct 12 08:38:37 user myapp.jar[11151]: 2017-10-12 10:38:37.217  INFO 11169 --- [hentovSyncTimer] o.apache.http.impl.execchain.RetryExec   : Retrying request to {}->http://197.97.1.97:80

I wannna app to throw error after first failed request, so I can rerun method.
I found that I can do this by setting number of http request retries to 1.
Like this:

HttpClientBuilder clientBuilder = HttpClients.custom();
clientBuilder.setRetryHandler(new DefaultHttpRequestRetryHandler(1, false));

But I dont know how to set it when I create my RestTemplate with RestTemplateBuilder:

@Bean("myRestTemplate")
fun oneSRestTemplate(): RestTemplate {
    return RestTemplateBuilder().basicAuthorization("login", "password")
            .rootUri("http://197.97.1.97/books/").build()
}