App Config Sample updates#812
Merged
Merged
Conversation
There was a problem hiding this comment.
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 synchronousisEnabled()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
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Much needed updates of the samples