Giter Site home page Giter Site logo

springcloudconfig's Introduction

SpringCloudConfig

SpringCloudConfig + SpringCloudBus DEMO

blog

项目demo需要kafka服务,自行替换配置中的参数。

spring.cloud.stream.kafka.binder.brokers=10.79.96.52:9092
spring.cloud.stream.kafka.binder.zk-nodes=10.79.96.52:2182

快速开始

1、启动alan-config,配置中心服务端
2、启动alan-demo-config-client,配置中心客户端 
3、浏览器打开输出环境变量值 http://localhost:8080
4、观察环境变量 http://localhost:8080/env

更新单机配置

1、手动赋值curl -X POST http://localhost:8080/env -d spring.datasource.username=wsh
2、观察环境变量 http://localhost:8080/env
3、使配置生效 curl -X POST http://localhost:8080/refresh
4、浏览器打开输出环境变量值 http://localhost:8080

清除步骤1的方法 curl -X POST http://localhost:8080/env/reset

更新集群配置

1、修改配置文件,提交代码到github repo
2、观察环境变量 http://localhost:8080/env
2、更新集群 curl -X POST http://localhost:8888/bus/refresh

springcloudconfig's People

Contributors

seagrape avatar

Watchers

James Cloos avatar Jiayi Xu 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.