Skip to content

Update for Spring Cloud Azure 7.0.0-beta.1#805

Merged
Netyyyy merged 13 commits intoAzure-Samples:spring-boot-4.xfrom
Netyyyy:myao/update-for-SpringBoot4
Dec 26, 2025
Merged

Update for Spring Cloud Azure 7.0.0-beta.1#805
Netyyyy merged 13 commits intoAzure-Samples:spring-boot-4.xfrom
Netyyyy:myao/update-for-SpringBoot4

Conversation

@Netyyyy
Copy link
Copy Markdown
Contributor

@Netyyyy Netyyyy commented Dec 25, 2025

Purpose

Update for Spring Cloud Azure 7.0.0-beta.1

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-blob-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-queue-sample/pom.xml Outdated
Copy link
Copy Markdown

Copilot AI left a comment

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 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.

Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-blob-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-queue-sample/pom.xml Outdated
@Netyyyy Netyyyy marked this pull request as ready for review December 25, 2025 08:56
@Netyyyy Netyyyy requested review from a team and mrm9084 as code owners December 25, 2025 08:56
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-cosmos-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-blob-sample/pom.xml Outdated
Comment thread testcontainers/spring-cloud-azure-testcontainers-for-storage-queue-sample/pom.xml Outdated
Comment thread README.md
Copy link
Copy Markdown
Contributor

@rujche rujche left a comment

Choose a reason for hiding this comment

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

LGTM.

@Netyyyy Netyyyy merged commit 8738f08 into Azure-Samples:spring-boot-4.x Dec 26, 2025
4 checks passed
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