RuoYi-Cloud/xjs-study/springcloud-project/oauth2/src/main/resources/application.yml

19 lines
569 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.

server:
port: 9898
spring:
application:
name: oauth-server
#注册到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} #实例名称