Coder Social home page Coder Social logo

spring-cloud-config's Introduction

spring-cloud

config from repo

config from a local folder

end points of properties

config-client endpoints

Test:

http://localhost:8888/config-client/test or http://localhost:8888/config-client/test/master http://localhost:8888/master/config-client-test.yml

Prod:

http://localhost:8888/config-client/prod or http://localhost:8888/config-client/prod/master

Development:

http://localhost:8888/config-client/development or http://localhost:8888/config-client/development/master

Acceptance:

http://localhost:8888/config-client/acceptance or http://localhost:8888/config-client/acceptance/master

Personal:

http://localhost:8888/config-client/personal or http://localhost:8888/config-client/personal/master

request

curl http://localhost:8888/config-client/test
curl http://localhost:8888/config-client/test/master

response

{
  "name": "config-client",
  "profiles": [
    "test"
  ],
  "label": "master",
  "version": "37483a37e6ce57a849751c049caa04134e185abc",
  "state": null,
  "propertySources": [
    {
      "name": "https://github.com/rslvn/spring-cloud-config-repo/config-client-test.yml",
      "source": {
        "sample.value.min": 5,
        "sample.value.max": 100,
        "sample.value.fix": "test"
      }
    }
  ]
}

request

curl http://localhost:8888/master/config-client-test.yml
curl http://localhost:8888/master/config-client-test.yaml

response

sample:
  value:
    fix: test
    max: 100
    min: 5

request

curl http://localhost:8888/master/config-client-test.properties
curl http://localhost:8888/config-client-test.properties

response

sample.value.fix: test
sample.value.max: 100
sample.value.min: 5

spring-cloud-config's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.