Skip to content

Commit 264bb32

Browse files
author
zhaiyongchao
committed
Spring Cloud构建微服务架构(四)配置管理config
1 parent b170265 commit 264bb32

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Chapter9-1-4/config-server/src/main/resources/application.properties

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
spring.application.name=config-server
12
server.port=7001
23

3-
spring.application.name=config-server
4-
spring.profiles.active=native
4+
spring.cloud.config.server.git.uri=http://git.oschina.net/didispace/SpringBoot-Learning/
5+
spring.cloud.config.server.git.searchPaths=Chapter9-1-4
6+
spring.cloud.config.server.git.username=username
7+
spring.cloud.config.server.git.password=password
8+
9+
# ¿ªÆô±¾µØÅäÖÃ
10+
#spring.profiles.active=native
11+
12+
13+
514

6-
#spring.cloud.config.server.git.uri=file://${user.home}/config-repo

0 commit comments

Comments
 (0)