feat: 删除冗余接口

This commit is contained in:
JR
2025-08-02 16:40:16 +08:00
parent bac9fbd1fb
commit 9f89ef9fcb
14 changed files with 106 additions and 646 deletions

View File

@@ -0,0 +1,23 @@
package com.klp.common.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;
/**
* RestTemplate配置类
*/
@Configuration
public class RestTemplateConfig {
@Bean
public RestTemplate restTemplate() {
SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
factory.setConnectTimeout(30000); // 30秒连接超时
factory.setReadTimeout(60000); // 60秒读取超时
return new RestTemplate(factory);
}
}