SpringBoot整合HttpClient实例
This commit is contained in:
parent
31cacf75bc
commit
82dbd70c76
|
@ -27,6 +27,7 @@ public class HttpAPIService {
|
|||
@Autowired
|
||||
private RequestConfig config;
|
||||
|
||||
|
||||
/**
|
||||
* 不带参数的get请求,如果状态码为200,则返回body,如果不为200,则返回null
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue