From 747ec12188f645a95418eef9731d23ceef5f0d52 Mon Sep 17 00:00:00 2001 From: Wonder Date: Tue, 7 Oct 2025 01:55:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-files/api-gateway.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/config-files/api-gateway.yml b/config-files/api-gateway.yml index 3262206..b091540 100644 --- a/config-files/api-gateway.yml +++ b/config-files/api-gateway.yml @@ -1,6 +1,6 @@ server: port: 8080 -spring:: +spring: application: name: api-gateway cloud: @@ -23,7 +23,7 @@ spring:: # 全局过滤器配置 globalcors: cors-configurations: - '[/**]': + "[/**]": allowedOrigins: "*" allowedMethods: "*" allowedHeaders: "*" @@ -39,14 +39,3 @@ spring:: instances: eureka-server: - uri: http://localhost:8761 - # 服务注册配置 - cloud: - config: - uri: http://localhost:8888 -# Eureka客户端配置 -eureka: - client: - service-url: - defaultZone: http://localhost:8761/eureka/ - instance: - prefer-ip-address: true \ No newline at end of file