Skip to content

Commit

Permalink
eureka ha 简写方式
Browse files Browse the repository at this point in the history
  • Loading branch information
itmuch001 committed Dec 29, 2017
1 parent eff8f22 commit 1b4ca8d
Showing 1 changed file with 23 additions and 0 deletions.
@@ -0,0 +1,23 @@
spring:
application:
name: microservice-discovery-eureka-ha
eureka:
client:
serviceUrl:
defaultZone: http://peer2:8762/eureka/,http://peer1:8761/eureka/
---
spring:
profiles: peer1
server:
port: 8761
eureka:
instance:
hostname: peer1
---
spring:
profiles: peer2
server:
port: 8762
eureka:
instance:
hostname: peer2

0 comments on commit 1b4ca8d

Please sign in to comment.