Skip to content

Add Cloud Config sample #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

therepanic
Copy link

@therepanic therepanic commented Apr 5, 2025

This is where I added cloud-config-sample. Of interest, I used props.put(“spring.config.location”, “classpath:/application.yml”) to load application.yml for the spring context. If this can be done in a better way, I'd love to hear advice. To start the cloud config server, I was loading the ConfigServerConfiguration bean.

I also made the response check with .contains(“Hello!”), in order not to apply additional logic to extract the value from the json. Do you think such a check which is now enough?

Fix: #77

Signed-off-by: Andrey Litvitski <[email protected]>
@therepanic therepanic force-pushed the add-cloud-config-sample branch from 62520f4 to 65e2594 Compare April 5, 2025 22:02
@therepanic
Copy link
Author

therepanic commented Apr 5, 2025

You may also notice that I only did the sample with the native cloud config profile. And I basically believe that this sample will suffice. What do you think? Should I make tests for different profiles in this sample?

@therepanic
Copy link
Author

Hello @rwinch! Can you review this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Cloud Config Sample
1 participant