spring-cloud-config-server | Docker build of the spring-cloud-config-server | Microservice library
kandi X-RAY | spring-cloud-config-server Summary
kandi X-RAY | spring-cloud-config-server Summary
A docker image of Spring Cloud Config Server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spring-cloud-config-server
spring-cloud-config-server Key Features
spring-cloud-config-server Examples and Code Snippets
Community Discussions
Trending Discussions on spring-cloud-config-server
QUESTION
This is regarding a Spring Cloud Config Server hobby project (with @EnableConfigServer
).
Yesterday, the application could be started.
Today, the application failed to start because of a Git communication error.
From GitHub's official blog post, it is mentioned that SHA-1 is no longer supported starting from 15 March 2022. And that explains the results I'm getting these 2 days.
March 15, 2022
Changes made permanent.
We’ll permanently stop accepting DSA keys. RSA keys uploaded after the cut-off point above will work only with SHA-2 signatures (but again, RSA keys uploaded before this date will continue to work with SHA-1). The deprecated MACs, ciphers, and unencrypted Git protocol will be permanently disabled.
Even if I didn't delete the existing SSH key, it still failed to start today. But anyway, now the only key under the "Deploy keys" section of the repository settings is an SSH key that was added after the March 15, 2022 cut off date.
Dependency versionsDependency Management:
Dependency Version spring-cloud-dependencies Hoxton.SR12Dependency:
Dependency Version spring-cloud-config-server (Managed) Spring application configurationsapplication.yml
:
ANSWER
Answered 2022-Mar-16 at 14:07I have a same problem.
See https://github.com/spring-cloud/spring-cloud-config/issues/2061
For right now, I have a dirty workaround: use https uri, username and password(maybe personal secret token).
QUESTION
I am new to Gradle and I followed the instructions of a tutorial, just that instead of maven I chose Gradle in Spring.Initializr.
It produced following code for the build.gradle
...ANSWER
Answered 2022-Feb-14 at 19:39The build.gradle
in your question matches the expected output from start.spring.io except these two lines:
QUESTION
I am trying to setup spring cloud config using local file system. However, I couldn't get it working.
Below is my application.properties file:
...ANSWER
Answered 2022-Jan-26 at 09:57It might be a simple mistake of naming?
For example, your spring application name is "limit-service"
while your property files are named "limits-service"
and that might be why it is not reading them.
QUESTION
I see issues in the Spring cloud config server (Springboot) logs when connecting to the repo where configs are stored. I'm not sure if it's unable to clone because of credentials or something else (git-upload-pack not permitted). Any pointers to this would be great.
...ANSWER
Answered 2021-Oct-28 at 00:08Github token needs to be passed as username which I was configuring against the password property for the spring boot app. The password property needs to be left empty and the Github-token needs to be assigned to the username like below-
QUESTION
I'm triying to create a Config Server that listens to Git event and streams events to client. I followed several examples and also the documentation, but I cant manage to get application to start. I guess I have a problem with spring boot and cloud versions.
It is important to mention im running rabbitmq with docker.
This is my build.gradle
...ANSWER
Answered 2021-Aug-19 at 18:44Well, I figured out
I turns out that Spring Cloud 2020.0.3 is supported by Spring Boot 2.4.6
So I downgraded to 2.4.6 and application started!
Hope it is helpfull for someone else
QUESTION
I am configuring spring config server with control bus(rabbitmq) but when i add its dependency the application failed to start with error:
...ANSWER
Answered 2021-Aug-19 at 16:06It's a known issue; fixed in spring-integration-amqp 5.5.3 (Boot 2.5.4).
https://github.com/spring-projects/spring-integration/issues/3606
QUESTION
Im try to create a simple project with 2 application ( a simple rest app and a config-server app ) My config-server project is ok, because if I got http://localhost:9091/form-create/container I can see all vars from form-create.properties
but my application form-create is not getting properties from config-server
here is my bootstrap.properties in form-create project
...ANSWER
Answered 2021-Jun-30 at 04:02I think you should try to check two things:
- Your maven dependencies. It looks like you've put them wrong, namely, if you're running cloud config client, why do you have a dependency for
spring-cloud-config-server
?
For Web and cloud config client the following list is sufficient:
QUESTION
I already went through many links like @RefreshScope and /refresh not working and Spring Boot 2: Refresh properties on the fly not working, but still things are not working for me.
I've developed spring-cloud-config-server
when I hit
POST ==> http://localhost:8002/actuator/refresh
I get the response
[ "config.client.version" ]
It looks like its somehow not loading the changed properties
pom.xml:
...ANSWER
Answered 2021-May-04 at 16:51After 10 hours of crazy debugging I had to replace yml to properties file and its started working.
I'm not sure why yml was unable to pick up the changes, surely its a bug!.
application.properties
QUESTION
I am configuring the new spring config server
and getting the below error.
ANSWER
Answered 2021-Jan-23 at 15:23You should rename your bootstrap.properties
file to application.properties
(see Spring Cloud Config Server).
And use native profile like @spencergibb recommended in comments section (see File system backend), either by adding the following line to application.properties
QUESTION
I am working on microservices using springboot. While configuring the server, everything is going smoothly. I am working on springboot 2.4 with cloud version 2020.0.0.
- enabled @EnableConfigServer on the main application class
- added bootstrap dependency
- created new git repo and property file
- added configuration to the pom file
But when I work with a local git repo, my server responds and I can access the application through URL (eg. localhost:8888/client/default).
However, when I provide my remote git URL, the server does not respond to anything. My URL is correct and I have provided the username and passwords too. There are no errors and nothing. Only 404 error page created by springboot.
What is the issue here? can anyone help?
POM::
...ANSWER
Answered 2021-Jan-22 at 15:01I found your git repository has main
branch not master
which is default branch for cloud config server.
To resolve this, you need to run client with property -Dspring.cloud.config.label=main
or create master
branch from main
branch.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-cloud-config-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page