From 26a77307e468e0b243b48fe89f09c09ce825f942 Mon Sep 17 00:00:00 2001 From: spring-cloud Date: Thu, 3 Nov 2022 16:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'application.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application.yml | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/application.yml b/application.yml index 72fec88..31001d1 100644 --- a/application.yml +++ b/application.yml @@ -1,25 +1,27 @@ -server: - # 服务端口 - port: 9000 spring: - application: - name: user-service-consumer - main: - allow-bean-definition-overriding: true -eureka: - instance: - hostname: localhost #实例主机名称 - client: - service-url: - defaultZone: http://localhost:7000/eureka/ # // 注册中心地址 - fetch-registry: true # 消费者需要注册中心的注册信息 - register-with-eureka: true + profiles: dev # 环境名称 + server: + # 服务端口 + port: 9000 + spring: + application: + name: user-service-consumer + main: + allow-bean-definition-overriding: true + eureka: + instance: + hostname: localhost #实例主机名称 + client: + service-url: + defaultZone: http://localhost:7000/eureka/ # // 注册中心地址 + fetch-registry: true # 消费者需要注册中心的注册信息 + register-with-eureka: true -feign: - client: - config: - default: - logger-level: full - # 整合feign和sentinel的配置 - sentinel: - enabled: true \ No newline at end of file + feign: + client: + config: + default: + logger-level: full + # 整合feign和sentinel的配置 + sentinel: + enabled: true \ No newline at end of file