微调
This commit is contained in:
@@ -7,6 +7,7 @@ import com.njcn.echarts.json.LineGenerator;
|
||||
import com.njcn.echarts.json.PieGenerator;
|
||||
import com.njcn.web.utils.RestTemplateUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
@@ -23,7 +24,8 @@ import java.util.*;
|
||||
public class DrawPicUtil {
|
||||
|
||||
//目前写死,后续作为配置
|
||||
private final String URL = "http://192.168.1.24:5174/picture";
|
||||
@Value("${DrawPicUtil.URL:http://192.168.1.24:5174/picture}")
|
||||
private String URL;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user