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