-
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.
We use main
branch as the develop branch while setting the default branch as the latest released branch.
Branch Name | Default Branch | Branch type |
---|---|---|
main | false | develop branch |
spring-cloud-azure_v4.3.0 | true | release branch |
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.
Two Maven profiles have been defined in this project to support compiling Spring applications to native executables: buildpack
and native
. The buildpack
profile will use Buildpacks and the native
profile will use Native Build Tools. Please follow the storage-blob-native sample for more details.