xiangpei
2024-08-05 c221aef40109fe7296450bd51b872ce51ee3e59c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.ycl.task;
 
import com.ycl.platform.domain.entity.WorkOrder;
import com.ycl.properties.RequestProperties;
import com.ycl.utils.http.RetryHttpUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
 
/**
 * @author:xp
 * @date:2024/4/18 15:26
 */
@Component("testJob")
@RequiredArgsConstructor
public class TestRequestJob {
 
    private final RequestProperties properties;
    private final RetryHttpUtil retryHttpUtil;
 
    public void test() {
        WorkOrder workOrder = retryHttpUtil.get("http://www.baidu.com/aa", "123", WorkOrder.class);
    }
 
}