Spring cloud config 檔案載入環境
1、config 預設git載入
通過spring.cloud.config.server.git.uri指定配置資訊儲存的git地址,比如:https://github.com/spring-cloud-samples/config-repo
2、載入本地開發環境
### config server native
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations=classpath:/config
3、載入 本地物理環境
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations=file:E:\\java\\Workspaces\\sts\\doc\\file\\config
4、載入svn環境 http://localhost:8888/{application}/{profile}/{label},比如:http://localhost:8888/dmeo/development/trunk
### config server svn
spring.cloud.config.server.svn.uri=http://localhost:8888/dmeo/development/trunk
spring.cloud.config.server.svn.username=xxx
spring.cloud.config.server.svn.password=xxx
spring.profiles.active=subversion
暫時用到了這幾個環境,其他環境用到了在加上。