File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
eureka-client/src/main/resources
eureka-feign-client/src/main/resources
eureka-server/src/main/resources Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 88 contextPath : /test
99
1010eureka :
11+ server :
12+ host : localhost:8761
13+ contextPath : serviceregistry
1114 client :
1215 serviceUrl :
13- defaultZone : ${EUREKA_URI:http://localhost:8761 /eureka}
16+ defaultZone : ${EUREKA_URI:http://${eureka.server.host}/${eureka.server.contextPath} /eureka}
1417 instance :
1518 preferIpAddress : true
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ server:
1111 port : 8080
1212
1313eureka :
14+ server :
15+ host : localhost:8761
16+ contextPath : serviceregistry
1417 client :
1518 serviceUrl :
16- defaultZone : ${EUREKA_URI:http://localhost:8761/eureka}
19+ defaultZone : ${EUREKA_URI:http://${eureka.server.host}/${eureka.server.contextPath}/eureka}
20+ instance :
21+ preferIpAddress : true
Original file line number Diff line number Diff line change 11server :
22 port : 8761
3-
4- server :
53 servlet :
64 contextPath : /serviceregistry
75
86# Standalone configuration
97eureka :
108 instance :
11- hostname : registry
9+ hostname : localhost
1210 client :
1311 register-with-eureka : false
1412 fetch-registry : false
1513 serviceUrl :
1614 # default zone points to self
17- defaultZone : http://${eureka.instance.hostname}:${server.port}/eureka/
15+ defaultZone : http://${eureka.instance.hostname}:${server.port}/${server.contextPath}/ eureka/
1816
1917
2018logging :
You can’t perform that action at this time.
0 commit comments