spring-cloud-config

Spring Cloud Config in Docker container is not accessible

家住魔仙堡 提交于 2021-02-08 03:41:20
问题 I have a relatively simple setup. A Spring Could Config server, and a Spring Cloud Eureka server. (I refer Eureka server as Discover everywhere in my config...) The config server uses a Git repository for finding the appropriate config. Everything is in Docker containers. I use docker-compose to build my services. The Gateway server should wait for config server to come up. I'll provide the source of the file further down. So, when I build and start the containers, the discovery (Eureka)

Spring Config-Client doesn't refresh if Config-Server is down during initial startup

折月煮酒 提交于 2021-02-07 04:33:05
问题 I am running a test with a barebones Spring cloud config-server and a client-application. I executed a refresh scenario (by calling /refresh endpoint on the client-application) after config-server was down initially. Here is what I found Client starts up with locally packaged properties when config-server is not reachable on startup. (I have the properties in application.yml that is bundled with client-application) Git backend has different values for the properties compared to locally

Spring cloud config with database backend

若如初见. 提交于 2021-01-29 10:43:57
问题 I'm trying to setup a spring boot project with Spring Cloud Config with database backend. I've following things in my setup: application.properties spring.application.name=my-services-api spring.datasource.url=jdbc:h2:~/test spring.datasource.driver-class-name=org.h2.Driver spring.datasource.platform=h2 spring.datasource.username=sa spring.datasource.password=sa spring.datasource.hikari.connection-timeout=5000 spring.datasource.hikari.maximum-pool-size=10 spring.profiles.active=jdbc spring

Spring Cloud Config Server - empty array for refreshed keys

半腔热情 提交于 2021-01-29 09:21:32
问题 I have a spring cloud config server as in this repo And a client in this repo following is my POM file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2

Spring Cloud Config: client doesn't attempt to connect to the config server

你离开我真会死。 提交于 2021-01-28 05:07:18
问题 I'm trying to create a simple Spring Cloud Config server/client setup and am loosely following the documentation: https://cloud.spring.io/spring-cloud-config/reference/html/ I've so far implemented a server that seems to work correctly, i.e. return the correct property values when I call the corresponding endpoint: GET http://localhost:8888/config-client/development { "name": "config-client", "profiles": [ "development" ], "label": null, "version": null, "state": null, "propertySources": [ {

Unable to fetch values from Spring Cloud Config Server to my Config-Client(limits-service)

匆匆过客 提交于 2020-12-15 06:37:34
问题 After days of search over internet and many tries(out of which nothing worked out for me), i am writing here I have Project- spring-cloud-config-server which has following files(full project can be accessed from https://github.com/AshishBharadwaj94/spring-cloud-config-server.git) SpringCloudConfigServerApplication.java application.properties (under folder- resources) Link Source Folder- git-config-repo which has limits-service's properties files pom.xml and Client Config Project- limits

How to point spring-cloud-config server to a git folder inside a git repo

核能气质少年 提交于 2020-12-13 17:59:37
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define

How to point spring-cloud-config server to a git folder inside a git repo

空扰寡人 提交于 2020-12-13 17:58:51
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define

How to point spring-cloud-config server to a git folder inside a git repo

大兔子大兔子 提交于 2020-12-13 17:58:16
问题 Please help me to resole the following problem.I would like to have a folder for each micro service in git repo. Please refer the sample structure I have inside git repo. https://github.com/tech-vishesh/config-server_properties If we have same properties under different folder like ms-one |--- application.properties |--- application-prod.properties |--- application-dev.properties ms-two |--- application.properties |--- application-prod.properties |--- application-dev.properties we have define