📜  从 java rest remplates 调用 http url - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:45.138000             🧑  作者: Mango

代码示例1
@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
 
    return builder
            .setConnectTimeout(Duration.ofMillis(3000))
            .setReadTimeout(Duration.ofMillis(3000))
            .build();
}