Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

RestTemplate timeout settings don't work #29

Open
duc-zip opened this issue Mar 2, 2022 · 0 comments
Open

RestTemplate timeout settings don't work #29

duc-zip opened this issue Mar 2, 2022 · 0 comments

Comments

@duc-zip
Copy link

duc-zip commented Mar 2, 2022

We're using the following bean setup with VGS. However, the RestTemplate timeouts don't work. It seems the RestTemplate's request factory is replaced by VGS library.

@Bean
@VgsProxied
fun restTemplate(
    builder: RestTemplateBuilder
): RestTemplate? = builder
    .rootUri(....)
    .setConnectTimeout(1000)
    .setReadTimeout(2000)
    .defaultMessageConverters()
    .build()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant