Skip to content

Add minimal runnable Spring Cloud Config demo - #1

Draft
wanggghere with Copilot wants to merge 2 commits into
masterfrom
copilot/add-basic-spring-demo-code
Draft

Add minimal runnable Spring Cloud Config demo#1
wanggghere with Copilot wants to merge 2 commits into
masterfrom
copilot/add-basic-spring-demo-code

Conversation

Copilot AI commented Feb 27, 2026

Copy link
Copy Markdown

The repository contained only raw config property files in respo/ with no runnable Spring project. This adds a two-module Maven project demonstrating Spring Cloud Config end-to-end.

Modules

  • config-server (port 8888): @EnableConfigServer app backed by this repo's respo/ directory via local Git URI
  • config-client (port 8080): Spring Boot REST app that imports config from the server at startup, exposing two endpoints driven by values in respo/config-client-dev.properties

Endpoints

GET /foo      → "foo version 5"
GET /message  → "hello spring io"

Project structure

pom.xml                          ← parent (Spring Boot 2.7.18, Spring Cloud 2021.0.8)
config-server/                   ← Config Server module
config-client/                   ← Config Client module
respo/                           ← existing git-backed config files (unchanged)

Config client uses spring.config.import=optional:configserver:http://localhost:8888 (Spring Cloud 2021+ style, no bootstrap context needed).


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: wanggghere <12821991+wanggghere@users.noreply.github.com>
Copilot AI changed the title [WIP] Add basic code to run a simple Spring demo application Add minimal runnable Spring Cloud Config demo Feb 27, 2026

@wanggghere wanggghere left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

111

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.

2 participants