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