提交 8d2a5c8d 编写于 作者: S shenhongxi

application.yml

上级 5e679a2e
spring:
profiles:
active: dev
---
eureka:
client:
serviceUrl:
defaultZone: http://test.toutiao.im:8761/eureka/
server:
port: 8763
spring:
application:
name: demo-consumer
profiles: test
---
eureka:
client:
serviceUrl:
......@@ -6,4 +23,5 @@ server:
port: 8763
spring:
application:
name: demo-consumer
\ No newline at end of file
name: demo-consumer
profiles: dev
\ No newline at end of file
spring:
profiles:
active: dev
---
spring:
profiles: test
server:
port: 8761
eureka:
instance:
hostname: test.toutiao.im
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
# defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
defaultZone: http://test.toutiao.im:8761/eureka/
---
spring:
profiles: dev
server:
port: 8761
......@@ -8,4 +31,4 @@ eureka:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
\ No newline at end of file
defaultZone: http://localhost:8761/eureka/
\ No newline at end of file
spring:
profiles:
active: dev
---
eureka:
client:
serviceUrl:
defaultZone: http://test.toutiao.im:8761/eureka/
server:
port: 8762
spring:
application:
name: demo-provider
profiles: test
---
eureka:
client:
serviceUrl:
......@@ -6,4 +23,5 @@ server:
port: 8762
spring:
application:
name: demo-provider
\ No newline at end of file
name: demo-provider
profiles: dev
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册