From 4cd260d0b98a0335147aa5ee8f7232dc7f5c1175 Mon Sep 17 00:00:00 2001 From: GYJ <1157756119@qq.com> Date: Sat, 8 Feb 2025 11:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czg/AccountApplication.java | 4 ++++ .../account-server/src/main/resources/application-dev.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cash-api/account-server/src/main/java/com/czg/AccountApplication.java b/cash-api/account-server/src/main/java/com/czg/AccountApplication.java index 783ff759..6c9ddcaf 100644 --- a/cash-api/account-server/src/main/java/com/czg/AccountApplication.java +++ b/cash-api/account-server/src/main/java/com/czg/AccountApplication.java @@ -2,11 +2,15 @@ package com.czg; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; /** * @author ww */ @SpringBootApplication +@EnableDiscoveryClient +@EnableFeignClients public class AccountApplication { public static void main(String[] args) { SpringApplication.run(AccountApplication.class, args); diff --git a/cash-api/account-server/src/main/resources/application-dev.yml b/cash-api/account-server/src/main/resources/application-dev.yml index 68455488..12f54f75 100644 --- a/cash-api/account-server/src/main/resources/application-dev.yml +++ b/cash-api/account-server/src/main/resources/application-dev.yml @@ -5,7 +5,7 @@ spring: config: bootstrap: enabled: true - data-id: account-server + data-id: system-server group: DEFAULT_GROUP auto-refresh: true server-addr: 101.37.12.135:8848