-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change order module to Eureka client
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
server: | ||
port: 80 | ||
port: 80 | ||
|
||
spring: | ||
application: | ||
name: cloud-order-service | ||
|
||
eureka: | ||
client: | ||
#是否向注册中心注册自己 | ||
register-with-eureka: true | ||
#是否从注册中心抓取已有的注册信息 默认true,集群必须设置为true | ||
fetchRegistry: true | ||
service-url: | ||
#设置与eureka server交互的地址查询服务和注册服务都需要依赖这个地址 | ||
#单机版 | ||
defaultZone: http:https://localhost:7001/eureka | ||
#集群版 | ||
#defaultZone: http:https://eureka7001.com:7001/eureka,http:https://eureka7002.com:7002/eureka |