Giter VIP home page Giter VIP logo

simple-spring-cloud's Introduction

simple-spring-cloud

spring-cloud模块的应用

springbootadmin版本

springcloud Dalston.SR3 springboot 1.5.4 spring-boot-admin-server 1.5.4 spring-boot-admin-server-ui 1.5.4 其他版本会报 ClassNotFoundException for "org.springframework.cloud.netflix.zuul.ZuulServerAutoConfiguration"

1.simple-config-server 配置svn时,注意参数 default-label 是 server.default-label. default-lable=trunk时,一定要在指定的URL目录下有此目录,否则会提示 no label found trunk

其他应用使用注册中心配置参数时,需要定义在 bootstrap.properites文件中 示例 #此处定义的config.name 是对外访问 .如下示例为http://app:port/config/dev,访问的具体文件为 config-dev.properties spring.cloud.config.name=config spring.cloud.config.profile=dev spring.cloud.config.uri=http://111.11.2.1:28004/ ##git 配置默认lable为master #spring.cloud.config.label=master

svn 配置默认为trunk

spring.cloud.config.label=trunk spring.cloud.config.discovery.service-id=spring-cloud-config-server

2,使用注册中心刷新 @RefreshScope时,与robin定义的restTemplate 产生冲突,需要分开使用。

3,客户端获取最新的属性文件,需要POST请求refresh。 如 curl -X POST http://app:port/refresh

simple-spring-cloud's People

Contributors

wrong1111 avatar

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.