Spring Cloud Azure Samples
-
This is a sample project for demonstration purposes.
-
The project demonstrates how to use Spring Cloud Azure to develop applications.
-
The sample project contains 42 samples, and it still grows.
-
These samples are grouped by Azure services and Spring Cloud Azure libraries.
For example: Use Spring Integration with single Azure Service Bus namespace, it located in the path
/servicebus/spring-cloud-azure-starter-integration-servicebus
.servicebus: The Azure service that the sample integrated with.
spring-cloud-azure-starter-integration-servicebus: The dependency that the sample depends on.
Current Branch Supported versions
All active branches
Spring Boot Version | Spring Cloud version | Spring Cloud Azure Version |
---|---|---|
2.5.5 | 2021.0.0 | 4.0 |
All samples in this repo
Running Samples With Terraform
With terraform scripts and DefaultAzureCredential, most samples in the project can be run with the same 4 steps below:
# Step1 Initialize Terraform
terraform -chdir=./terraform init
# Step2 Apply your Terraform Configuration
terraform -chdir=./terraform apply -auto-approve
# Step3 Export Environment Valuables
source ./terraform/setup_env.sh
# Step4 Run With Maven
mvn clean spring-boot:run
It supports both Bash environment and PowerShell environment.
Please refer to README.md under each sample for detailed information.