RestTemplateConfig.java 426 B

12345678910111213141516171819
  1. package com.zanxiang.sdk.config;
  2. import org.springframework.context.annotation.Bean;
  3. import org.springframework.context.annotation.Configuration;
  4. import org.springframework.web.client.RestTemplate;
  5. /**
  6. * @author : lingfeng
  7. * @time : 2021-08-18
  8. * @description : redis配置
  9. */
  10. @Configuration
  11. public class RestTemplateConfig {
  12. @Bean
  13. public RestTemplate restTemplate() {
  14. return new RestTemplate();
  15. }
  16. }