Giter VIP home page Giter VIP logo

spring-cloud-config's Introduction

SpringCloud 配置管理中心

配置服务的路径规则

  • /{application}/{profile}[/{label}]
  • /{application}-{profile}.yml
  • /{label}/{application}-{profile}.yml
  • /{application}-{profile}.properties
  • /{label}/{application}-{profile}.properties

 

    # 下面通过具体例子说明以上url的意思, 如果我们的配置文件名称spring-cloud-config-prod.yml, 则其和URL中各个字段对应的值为:
    
    # application: spring-cloud-config
    # profile: prod | dev | answer | ...
    # label: 9500e50f08c43e3e4391175c8f6d5a326b11302f
    
    # 我们访问以下地址都可以访问到配置文件config-prod.yml和特定版本下此文件
    # http://127.0.0.1:8888/spring-cloud-config/prod 
    # http://127.0.0.1:8888/spring-cloud-config/prod/9500e50f08c43e3e4391175c8f6d5a326b11302f 
    # http://127.0.0.1:8888/spring-cloud-config-prod.yml 
    # http://127.0.0.1:8888/9500e50f08c43e3e4391175c8f6d5a326b11302f/spring-cloud-config-prod.yml 
    # http://127.0.0.1:8888/spring-cloud-config-prod.properties 
    # http://127.0.0.1:8888/9500e50f08c43e3e4391175c8f6d5a326b11302f/spring-cloud-config-prod.properties

 

附录 - 参考文档

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.