Skip to content

Commit

Permalink
modify eureka config error in aplication.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
mengjin committed Mar 29, 2019
1 parent 7721cbf commit 4d2d0d6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ch4-4/ch4-4-feign-file-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ spring:
application:
name: feign-file-server

client:
serviceUrl:
defaultZone: http://${eureka.host:127.0.0.1}:${eureka.port:8761}/eureka/
instance:
prefer-ip-address: true


eureka:
server:
enableSelfPreservation: false
enableSelfPreservation: false
client:
serviceUrl:
defaultZone: http://${eureka.host:127.0.0.1}:${eureka.port:8761}/eureka/
instance:
prefer-ip-address: true

0 comments on commit 4d2d0d6

Please sign in to comment.