项目作者: navuniverse

项目描述 :
Spring Cloud Config Server Application
高级语言: Java
项目地址: git://github.com/navuniverse/spring-config-server.git
创建时间: 2018-10-09T13:21:58Z
项目社区:https://github.com/navuniverse/spring-config-server

开源协议:

下载


spring-config-server

Spring Cloud Config Server integrated to load properties from file system and git.

Steps to use -

  1. Start the application as spring boot and open the URL - http://localhost:8888/myapp/default. Here myapp stands for application name and default stands for active profile in your spring application.

    If you have a different file name on git and file system to load properties then you may have to use the URL as - http://localhost:8888/{fileName}/{profile}

  1. You should see the property files loading from git and file system both
  1. {
  2. "name": "myapp",
  3. "profiles": ["default"],
  4. "label": null,
  5. "version": null,
  6. "state": null,
  7. "propertySources": [{
  8. "name": "classpath:/myapp.yml",
  9. "source": {
  10. "property.file.second": "Property Loaded From Config File"
  11. }
  12. }, {
  13. "name": "https://github.com/navuniverse/spring-vault-properties/myapp.yml",
  14. "source": {
  15. "myapp.git.property": "Application Property from git"
  16. }
  17. }]
  18. }