From 4f889e7f61dee92b64a1e1c3d56d13fc9e47442f Mon Sep 17 00:00:00 2001 From: spring-cloud Date: Thu, 3 Nov 2022 16:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: spring-cloud --- application.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 application.yml diff --git a/application.yml b/application.yml new file mode 100644 index 0000000..72fec88 --- /dev/null +++ b/application.yml @@ -0,0 +1,25 @@ +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