Update for Spring Cloud Azure 7.0.0-beta.1#805
Merged
Netyyyy merged 13 commits intoAzure-Samples:spring-boot-4.xfrom Dec 26, 2025
Merged
Update for Spring Cloud Azure 7.0.0-beta.1#805Netyyyy merged 13 commits intoAzure-Samples:spring-boot-4.xfrom
Netyyyy merged 13 commits intoAzure-Samples:spring-boot-4.xfrom
Conversation
rujche
reviewed
Dec 25, 2025
rujche
reviewed
Dec 25, 2025
rujche
reviewed
Dec 25, 2025
There was a problem hiding this comment.
Pull request overview
This PR updates the Spring Cloud Azure samples from version 6.1.0 to 7.0.0-beta.1, along with upgrading Spring Boot from 3.5.5 to 4.0.0. The changes involve significant API migrations required for Spring Boot 4.0 compatibility, including JUnit 5 migration, Spring Security updates, and OAuth2 client API changes.
Key changes:
- Upgraded all pom.xml files from Spring Boot 3.5.5 to 4.0.0 and Spring Cloud Azure from 6.1.0 to 7.0.0-beta.1
- Migrated test code from JUnit 4 to JUnit 5 (annotations and runners)
- Updated Spring Security configuration to use new lambda-based DSL patterns
- Replaced deprecated OAuth2 client APIs with new RestClient-based implementations
- Updated various Spring Boot 4.0 package relocations (OAuth2ResourceServerProperties, RestTemplateBuilder, WebClientSsl)
- Added Spring Boot 4.x column to README.md documentation tables with links to the new branch
Reviewed changes
Copilot reviewed 94 out of 94 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| testcontainers/*/pom.xml | Updated Spring Boot to 4.0.0, Spring Cloud Azure to 7.0.0-beta.1, added JUnit Jupiter dependencies, and changed Testcontainers artifact names |
| testcontainers//src/test/java/.java | Migrated from JUnit 4 to JUnit 5: changed annotations (@BeforeClass → @BeforeAll), imports, and test runners |
| storage/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| storage/*/SendController.java | Replaced ListenableFutureCallback with BiConsumer lambda for async callbacks |
| servicebus/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| servicebus/*/SendController.java | Replaced ListenableFutureCallback with BiConsumer lambda for async callbacks |
| keyvault/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions, added new starter dependencies |
| keyvault/*/*Configuration.java | Updated import paths for relocated Spring Boot 4.0 classes |
| cosmos/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| cosmos/*/WebSecurityConfig.java | Migrated Spring Security configuration to lambda-based DSL |
| aad/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| aad/*/*Configuration.java | Updated OAuth2 client APIs to RestClient-based implementations, updated import paths for relocated classes |
| aad/*/AadJwtBearerGrantRequestEntityConverter.java | Refactored to implement Converter interface directly instead of extending deprecated class |
| README.md | Added Spring Boot 4.x column to all sample tables with links to spring-boot-4.x branch |
| eventhubs/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| eventhubs/*/SendController.java | Replaced ListenableFutureCallback with BiConsumer lambda for async callbacks |
| appconfiguration/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| cache/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| mysql/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| postgresql/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
| eventgrid/*/pom.xml | Updated Spring Boot and Spring Cloud Azure versions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rujche
requested changes
Dec 25, 2025
rujche
reviewed
Dec 25, 2025
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.
Purpose
Update for Spring Cloud Azure 7.0.0-beta.1
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information