Spring Cloud for Amazon Web Services (Amazon Web Services 的 Spring Cloud)3.0.0

Spring Cloud for Amazon Web Services 是一個社群運作的專案。網站是 https://awspring.io/,原始碼儲存庫位於 https://github.com/awspring/spring-cloud-aws

Spring Cloud for Amazon Web Services 簡化了與託管 Amazon Web Services 的整合。它提供了一種方便的方式,使用著名的 Spring 慣用語和 API(例如消息傳遞或快取 API)與 AWS 提供的服務進行互動。開發人員可以圍繞託管服務構建應用程式,而無需擔心基礎架構或維護。

功能

基於註解的 SQS 佇列監聽器

@MessageMapping("logicalQueueName")
private void receiveMessage(Person person, @Header("SenderId") String senderId) {
    // ...
}

基於註解的 SNS 監聽器

@Controller
@RequestMapping("/sns/receive")
public class SnsEndpointController {

@NotificationMessageMapping
public void receiveNotification(@NotificationMessage String message, @NotificationSubject String subject) {
    // ...
}

@NotificationSubscriptionMapping
public void confirmSubscription(NotificationStatus notificationStatus) {
    notificationStatus.confirmSubscription();
}

消息傳遞範本

snsTemplate.sendNotification("SnsTopic", "message", "subject");
sqsTemplate.convertAndSend("Queue", new Person("John", "Doe"));
Spring Initializr

快速開始您的專案

領先一步

VMware 提供培訓和認證,以加速您的進展。

了解更多

取得支援

Tanzu Spring 在一個簡單的訂閱中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位檔案。

了解更多

即將到來的活動

查看 Spring 社群中所有即將到來的活動。

查看全部