From 7230e10d48407832d3109f8560e354c357ed0856 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 09 八月 2024 16:46:10 +0800
Subject: [PATCH] openfeign url 可配置
---
jh-server/src/main/resources/application-local.yaml | 4 ++++
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/feign/RemoteDataService.java | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/feign/RemoteDataService.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/feign/RemoteDataService.java
index 3cebbfd..3330920 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/feign/RemoteDataService.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/feign/RemoteDataService.java
@@ -6,7 +6,7 @@
import javax.annotation.Resource;
-@FeignClient(name = "remote-data-service", url = "http://127.0.0.1:8080")
+@FeignClient(name = "remote-data-service", url = "${jinhua.url}")
public interface RemoteDataService {
@PostMapping(value="/hai/HttpEntry/", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
public RestApiResult<Object> httpApi( @RequestParam("service") String service,
diff --git a/jh-server/src/main/resources/application-local.yaml b/jh-server/src/main/resources/application-local.yaml
index 6b51c89..970b71c 100644
--- a/jh-server/src/main/resources/application-local.yaml
+++ b/jh-server/src/main/resources/application-local.yaml
@@ -1,6 +1,10 @@
server:
port: 48080
+--- #################### 鍖婚櫌骞冲彴鏈嶅姟鍦板潃 ####################
+jinhua:
+ url: http://127.0.0.1:8080
+
--- #################### 鏁版嵁搴撶浉鍏抽厤缃� ####################
spring:
# 鏁版嵁婧愰厤缃」
--
Gitblit v1.9.3