commit | author | age
|
a18bfa
|
1 |
package com.codingapi.tm; |
Z |
2 |
|
|
3 |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
|
4 |
import org.springframework.context.annotation.Bean; |
|
5 |
import org.springframework.context.annotation.Configuration; |
|
6 |
import org.springframework.web.client.RestTemplate; |
|
7 |
|
|
8 |
/** |
|
9 |
* Created by lorne on 2017/7/5. |
|
10 |
*/ |
|
11 |
|
|
12 |
@Configuration |
|
13 |
@EnableAutoConfiguration |
|
14 |
public class RestConfig { |
|
15 |
|
|
16 |
|
|
17 |
@Bean |
|
18 |
public RestTemplate getRestTemplate() { |
|
19 |
RestTemplate restTemplate = new RestTemplate(); |
|
20 |
return restTemplate; |
|
21 |
} |
|
22 |
|
|
23 |
|
|
24 |
} |