Skip to content

App Config Sample updates#812

Merged
rujche merged 2 commits into
mainfrom
App-Config-Updates
Jan 21, 2026
Merged

App Config Sample updates#812
rujche merged 2 commits into
mainfrom
App-Config-Updates

Conversation

@mrm9084

@mrm9084 mrm9084 commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

Much needed updates of the samples

@mrm9084 mrm9084 requested a review from a team as a code owner January 21, 2026 00:28
@mrm9084 mrm9084 requested a review from Copilot January 21, 2026 00:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Azure App Configuration and Feature Management samples to align with version 6.x of the Spring Cloud Azure libraries. The changes modernize the samples by removing deprecated async APIs, updating configuration formats, and simplifying authentication patterns.

Changes:

  • Migrated from isEnabledAsync() to synchronous isEnabled() API across all samples
  • Updated configuration file formats to use new YAML structure for feature flags
  • Upgraded dependency version from 4.19.0 to 6.1.0 and removed obsolete credential provider code
  • Improved HTML templates to use proper Thymeleaf URL syntax
  • Reorganized imports to follow standard conventions (Java/Spring imports before Azure imports)
  • Enhanced bean configuration with explicit naming for filter beans

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
AppConfigClientCustomizer.java Added documentation comment explaining the feature is no longer required by default in 6.0.0+
ConsoleApplication.java Updated to use synchronous isEnabled() API and reorganized imports
HelloController.java (targeting-filter) Changed to final field, added root path mapping, updated API calls, and reorganized imports
AppConfiguration.java Added explicit bean name "Microsoft.Targeting" for filter registration
application.yml (targeting-filter) Updated feature flag configuration to new format with proper casing and structure
HTML templates (4 files) Migrated CSS links to use Thymeleaf URL expressions (th:href)
sample-data.yml Converted from App Configuration JSON format to feature management YAML structure
application.yml (web-sample) Replaced embedded feature flags with Azure App Configuration service integration
Random.java Reorganized imports to follow standard conventions
TestComponent.java Updated to synchronous API and reorganized imports
HelloController.java (web-sample) Removed unused logger, updated to synchronous API, reorganized imports
FeatureFilter.java Updated to synchronous API and reorganized imports
pom.xml Added spring-cloud-azure-appconfiguration-config-web dependency
README.md Updated version to 6.1.0 and removed obsolete credential provider setup instructions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rujche rujche merged commit 54cad9e into main Jan 21, 2026
16 checks passed
@rujche rujche deleted the App-Config-Updates branch January 21, 2026 01:13
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.

3 participants