The Spring on Azure project is designed to provide seamless Spring integration with Azure managed services. Developers can adopt a Spring-idiomatic way to take advantage of managed services on Azure, with only few lines of configuration and minimal code changes.
Features
Project features include:
Spring Cloud
Spring Cloud Stream Binder for Azure Event Hubs (native API and Apache Kafka API), including Spring Integration Channel Adapters
Spring Cloud Stream Binder for Azure Service Bus Topic and Queue, including Spring Integration Channel Adapters
Spring Resource Abstraction for Azure Storage
Spring Cache auto-configuration for Azure Cache for Redis
Spring Cloud Functions in Azure
Spring Cloud Config for Azure App Configuration (Preview)
Spring Boot
Azure support
Spring Boot Starter for Azure Active Directory
Spring Boot Starter for Azure Key Vault
Spring Boot Starter for Azure Storage store
Spring Boot Starter for Micrometer with Application Insights
Spring Boot Starter for Azure Media Services
Spring Boot Starter for Azure Active Directory B2C
Spring Boot Starter for Azure Cosmos DB
Spring Boot Starter for Azure Service Bus
Spring Boot Starter for Azure Service Bus with JMS
Spring Boot Starter for Spring Data Gremlin with Azure Cosmos DB and any Gremlin-compatible data store
Spring Boot Starter for Micrometer with Application Insights
Spring Boot Starter for Azure Media Services
Spring Data
Spring Data JPA - Azure MySQL, Azure PostgreSQL, Microsoft SQL Server
Spring Data JDBC - Azure MySQL, Azure PostgreSQL, Microsoft SQL Server
Spring Data MongoDB - Azure MongoDB (via Azure Cosmos DB)
Spring Data for Apache Cassandra - Azure Cassandra (via Azure CosmosDB)
Spring Data Azure Cosmos DB - Azure Cosmos DB
Spring Data Redis - Azure Cache for Redis
Getting Started
The Azure Support entry contains auto-configuration support for Azure managed services. It also provides the capability to automatically inject properties from Cloud Foundry into your applications using Azure managed services. Let us take Spring Boot Starter for Azure Service Bus as an example. All Spring Cloud for Azure artifacts are made available through Maven Central. You can bootstrap your application with Spring Initializr and add the Azure Support dependency. Then you can add the usual azure-servicebus dependency to your project and the Spring Boot auto-configuration will automatically configure your Spring application with Azure Service Bus.
com.microsoft.azure azure-spring-boot-starter com.microsoft.azure azure-servicebusAlternatively, you can add the full name of the Spring Boot Starter for Azure Service Bus.
com.microsoft.azure azure-servicebus-spring-boot-starterRun your Spring Boot applications
The best way to run Spring Boot apps on Azure is to use Azure Spring Cloud, a fully managed Spring Cloud service, jointly built and operated by Microsoft and Pivotal (VMware). It enables Java developers to easily build and run Spring-boot based microservices on Azure with no code changes. Follow this tutorial to prepare a Java Spring application for deployment in Azure Spring Cloud.
Additionally, you can deploy a Spring Boot application on
Azure App Service on Linux
Azure Kubernetes Service
Spring Initializr
Quickstart Your Project
Bootstrap your application with Spring Initializr.
translate:
翻译:
Spring on Azure项目旨在提供与Azure托管服务的无缝Spring集成。开发人员可以采用Spring惯用的方法来利用Azure上的托管服务,只需很少的配置行和最少的代码更改。
特征
项目特点包括:
春云
用于Azure事件中心(本地API和apachekafkaapi)的Spring云流绑定器,包括Spring集成通道适配器
用于Azure服务总线主题和队列的Spring云流绑定器,包括Spring集成通道适配器
Azure存储的Spring资源抽象
用于Redis的Azure缓存的Spring缓存自动配置
Azure中的Spring云功能
用于Azure应用程序配置的Spring云配置(预览)
弹簧靴
Azure支持
Azure活动目录的Spring启动程序
Azure密钥库的春季启动程序
Azure存储商店的春季启动程序
具有应用洞察力的千分尺弹簧套起动器
Azure媒体服务的Spring启动程序
Azure活动目录B2C的Spring启动程序
Azure Cosmos DB的春季启动程序
Azure服务总线的Spring启动程序
带有JMS的Azure服务总线的Spring启动程序
带有Azure Cosmos DB和任何与Gremlin兼容的数据存储的Spring数据Gremlin的Spring启动程序
具有应用洞察力的千分尺弹簧套起动器
Azure媒体服务的Spring启动程序
春季数据
Spring数据JPA-Azure MySQL、Azure PostgreSQL、Microsoft SQL服务器
Spring数据JDBC-Azure MySQL、Azure PostgreSQL、Microsoft SQL Server
Spring数据MongoDB-Azure MongoDB(通过Azure Cosmos DB)
Apache Cassandra的Spring数据-Azure Cassandra(通过Azure CosmosDB)
春季数据Azure Cosmos DB-Azure Cosmos DB
Spring Data Redis-用于Redis的Azure缓存
入门
Azure支持条目包含对Azure托管服务的自动配置支持。它还提供了使用Azure托管服务将Cloud Foundry的属性自动注入应用程序的功能。让我们以Azure服务总线的Spring Boot Starter为例。所有针对Azure工件的Spring Cloud都可以通过Maven Central获得。您可以使用Spring初始化器引导应用程序并添加Azure支持依赖项。然后,您可以将常见的azure Service Bus依赖项添加到项目中,Spring Boot自动配置将使用azure服务总线自动配置Spring应用程序。