更新 'application.yml'

This commit is contained in:
spring-cloud 2022-11-03 16:55:56 +08:00
parent 4f889e7f61
commit 26a77307e4

View File

@ -1,12 +1,14 @@
server: spring:
profiles: dev # 环境名称
server:
# 服务端口 # 服务端口
port: 9000 port: 9000
spring: spring:
application: application:
name: user-service-consumer name: user-service-consumer
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
eureka: eureka:
instance: instance:
hostname: localhost #实例主机名称 hostname: localhost #实例主机名称
client: client:
@ -15,7 +17,7 @@ eureka:
fetch-registry: true # 消费者需要注册中心的注册信息 fetch-registry: true # 消费者需要注册中心的注册信息
register-with-eureka: true register-with-eureka: true
feign: feign:
client: client:
config: config:
default: default: