Commit 5756a7a6 by 袁伟铭

1.0.0

parent d4ea7f62
......@@ -8,11 +8,12 @@ spring:
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
......
......@@ -16,9 +16,11 @@ spring:
# password: Dk2019123456
# search-paths: config-files #配置git仓库下的相对地址,可以配置多个,用 , 分割
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://admin:123456@localhost:9900/eureka/
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
management:
endpoints:
......
......@@ -8,8 +8,6 @@ spring:
name: admin
password: 123456
eureka:
instance:
preter-ip-address: true
client:
# 表示是否将自己注册到Eureka Server,默认为true。
register-with-eureka: false
......@@ -17,4 +15,4 @@ eureka:
fetch-registry: false
# 设置与Eureka Server交互的地址,查询服务和注册服务都需要依赖这个地址。默认是http://localhost:8000/eureka ;多个地址可使用,分隔
service-url:
defaultZone: http://admin:123456@localhost:9900/eureka/
defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@${spring.cloud.client.ip-address}:${server.port}/eureka/
\ No newline at end of file
......@@ -8,11 +8,12 @@ spring:
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
......
......@@ -8,11 +8,12 @@ spring:
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
......
......@@ -8,11 +8,12 @@ spring:
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
......
......@@ -8,11 +8,12 @@ spring:
discovery:
enabled: true
service-id: CONFIG-SERVER
uri: http://127.0.0.1:8500/
eureka:
instance:
prefer-ip-address: true
client:
serviceUrl:
service-url:
defaultZone: http://admin:123456@127.0.0.1:9900/eureka/
# instance:
# lease-renewal-interval-in-seconds: 2 #每间隔1s,向服务端发送一次心跳,证明自己依然"存活"
......
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