From 0d952e0c98e4dc167bca900e68b39cad4e835127 Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Thu, 25 Jun 2026 21:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=AF=AF=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/AlgorithmServerProperties.java | 19 +++++++++++++++++++ src/main/resources/application-dev.yml | 7 +------ src/main/resources/application-prod.yml | 4 ---- .../customize/application-customize-dev.yml | 7 +++++++ .../customize/application-customize-prod.yml | 7 +++++++ 5 files changed, 34 insertions(+), 10 deletions(-) create mode 100644 src/main/java/com/gis/xian/config/AlgorithmServerProperties.java diff --git a/src/main/java/com/gis/xian/config/AlgorithmServerProperties.java b/src/main/java/com/gis/xian/config/AlgorithmServerProperties.java new file mode 100644 index 0000000..10cdbf8 --- /dev/null +++ b/src/main/java/com/gis/xian/config/AlgorithmServerProperties.java @@ -0,0 +1,19 @@ +package com.gis.xian.config; + +import lombok.Data; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * 算法服务器配置属性 + */ +@Data +@Component +@ConfigurationProperties(prefix = "algorithm.server") +public class AlgorithmServerProperties { + + /** + * 算法服务器地址 + */ + private String url; +} diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 5fb94a2..b410d7c 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,7 +1,3 @@ - # 端口 -server: - port: 8081 - # 开发环境配置 spring: config: @@ -45,12 +41,11 @@ safety: - /druid - /websocket/info - /websocket/** - - /open/** + # 请求无需解密的路径 no-decrypt-paths: - /crypto/sm2/public-key - /druid - /websocket/info - /websocket/** - - /open/** diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 7c852e1..b3cd8d7 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,7 +1,3 @@ -# 端口 -server: - port: 8080 - # 生产环境配置 spring: config: diff --git a/src/main/resources/config/customize/application-customize-dev.yml b/src/main/resources/config/customize/application-customize-dev.yml index e69de29..9912192 100644 --- a/src/main/resources/config/customize/application-customize-dev.yml +++ b/src/main/resources/config/customize/application-customize-dev.yml @@ -0,0 +1,7 @@ +# 端口 +server: + port: 8081 + +algorithm: + server: + url: "http://localhost:8082" \ No newline at end of file diff --git a/src/main/resources/config/customize/application-customize-prod.yml b/src/main/resources/config/customize/application-customize-prod.yml index e69de29..ee478bc 100644 --- a/src/main/resources/config/customize/application-customize-prod.yml +++ b/src/main/resources/config/customize/application-customize-prod.yml @@ -0,0 +1,7 @@ +# 端口 +server: + port: 8080 + +algorithm: + server: + url: "http://localhost:8081" \ No newline at end of file