RuoYi-Cloud/xjs-study/springcloud-project/eureka/eureka-client-consumer/src/main/resources/application.yml

26 lines
774 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#eureka server端口
server:
port: 8759
spring:
application:
name: eureka-client-consumer #应用名称在Eureka中作为服务名称
#注册到Eureka服务中心
eureka:
client:
service-url:
# 注册到集群就把多个Eureka Server 地址使用逗号连接起来即可,注册到单实例,就写一个
defaultZone: http://localhost:8761/eureka,http://localhost:8762/eureka,http://localhost:8763/eureka
instance:
prefer-ip-address: true #服务实例中显示ip而不是显示主机名
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} #实例名称
logging:
level:
org.springframework.cloud.sleuth: debug
org.springframework.web.servlet.DispatcherServlet: debug