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.echarts.json.PieGenerator;
import com.njcn.web.utils.RestTemplateUtil; import com.njcn.web.utils.RestTemplateUtil;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
@@ -23,7 +24,8 @@ import java.util.*;
public class DrawPicUtil { 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;
/** /**

View File

@@ -0,0 +1,30 @@
spring:
#nacos注册中心以及配置中心的指定
cloud:
nacos:
discovery:
ip: @service.server.url@
server-addr: @nacos.url@
namespace: @nacos.namespace@
config:
server-addr: @nacos.url@
namespace: @nacos.namespace@
file-extension: yaml
shared-configs:
- data-id: share-config.yaml
refresh: true
main:
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
jackson:
time-zone: GMT+8