Commit a327872b by 袁伟铭

修改注册中心配置

parent 8a39e625
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -16,6 +16,8 @@ spring: ...@@ -16,6 +16,8 @@ spring:
# password: Dk2019123456 # password: Dk2019123456
# search-paths: config-files #配置git仓库下的相对地址,可以配置多个,用 , 分割 # search-paths: config-files #配置git仓库下的相对地址,可以配置多个,用 , 分割
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@localhost:8800/eureka/ defaultZone: http://admin:123456@localhost:8800/eureka/
......
...@@ -8,8 +8,6 @@ spring: ...@@ -8,8 +8,6 @@ spring:
name: admin name: admin
password: 123456 password: 123456
eureka: eureka:
instance:
preter-ip-address : true
client: client:
# 表示是否将自己注册到Eureka Server,默认为true。 # 表示是否将自己注册到Eureka Server,默认为true。
register-with-eureka: false register-with-eureka: false
......
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -11,6 +11,8 @@ spring: ...@@ -11,6 +11,8 @@ spring:
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8500/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -8,9 +8,11 @@ spring: ...@@ -8,9 +8,11 @@ spring:
discovery: discovery:
enabled: true enabled: true
service-id: CONFIG-SERVER service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/ uri: http://127.0.0.1:8300/
eureka: eureka:
instance:
prefer-ip-address: true
client: client:
serviceUrl: serviceUrl:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment