Giter Club home page Giter Club logo

duic-spring-cloud-config-client's Introduction

duic 配置中心 spring-cloud-config 工具包。

功能

  1. 加载 duic 配置。

  2. 更新配置。

  3. 支持 @Value 注入配置。

  4. 支持 @ConfigurationProperties 注入配置。

  5. 支持 spring-cloud 的 @RefreshScope 注解刷新配置。

示例

maven
<dependency>
  <groupId>io.zhudy.duic</groupId>
  <artifactId>duic-spring-cloud-config-client</artifactId>
  <version>2.0.2</version>
</dependency>
gradle
compile "io.zhudy.duic:duic-spring-cloud-config-client:2.0.2"
duic 服务配置 bootstrap.yml
duic:
  spring:
    cloud:
      config:
        uri: https://duic.zhudy.io/api/v1 # (1)
        name: samples                     # (2)
        profile: first,second             # (3)
        # token: [TOKEN]                  # (4)
  1. 应用名称,将作为 duic 的应用名称。

  2. duic 服务的 baseUri

  3. profile,多个采用 , 分隔。

  4. 如果指定的 profile 需要访问令牌认证时需配置 token,多个采用 , 分隔。

duic-spring-cloud-config-client's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

duic-spring-cloud-config-client's Issues

spring boot 2.0.3 貌似不支持啊

spring boot 2.0.3 貌似不支持啊 ,启动报错

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V

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.