🏗️ 缓存架构调整, 改为自实现缓存, 移除第三方依赖.

This commit is contained in:
zhaojun1998
2020-02-26 21:13:08 +08:00
parent 3e61d7d146
commit 399e961a65
15 changed files with 329 additions and 205 deletions

View File

@@ -6,6 +6,7 @@ import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.web.client.RestTemplate;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
/**
* @author zhaojun
@@ -17,6 +18,7 @@ public class ZFileConfiguration {
public RestTemplate restTemplate(){
RestTemplate restTemplate = new RestTemplate();
restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
restTemplate.setInterceptors(Collections.singletonList(new ContentTypeTextToTextJson()));
return restTemplate;
}