| 1234567891011121314151617181920 |
- package com.uas.ps.config;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.web.client.RestTemplate;
- /**
- * RestTemplate配置bean
- * @author suntg
- * @create 2017/2/15
- * @version 2017年8月2日16:07:06 suntg 修改文件类名
- */
- @Configuration
- public class RestTemplateConfig {
- @Bean
- public RestTemplate restTemplate() {
- return new RestTemplate();
- }
- }
|