| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system.
Please change git url in application.properties, and you can check by http://localhost:8888/configserver/default
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>spring.cloud.config.uri: http://localhost:8888/
$ curl http://localhost:8888/demo/master
$ curl http://localhost:8888/demo/prod/master
Config Server with Git adopts following rules to get configuration:
properties or yml: "/{name}/{profile}/{label}": name is application name, profile is Spring profile name, and label is git branch or tag name.
plain text: "/{name}/{profile}/{label}/{path}"
$ curl http://localhost:8888/demo/default/master/demo.conf $ curl http://localhost:8888/demo/default/master/hibernate/demo.xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>eureka.instance.prefer-ip-address=true
eureka.client.fetch-registry=false
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/please copy configserver.yml to $HOME/.spring-cloud/configserver.yml and execute:
$ spring cloud configserver
| Back | FazBrowse Home | New Git URL |