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