This commit is contained in:
wr
2025-03-06 10:05:25 +08:00
parent dd2f738c00
commit 848bb5f6b0
2 changed files with 33 additions and 1 deletions

View File

@@ -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;
/**