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);
|
}
|
|
}
|