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