Spring Cloud for Amazon Web Services適用於 Amazon Web Services 的 Spring Cloud3.0.0

適用於 Amazon Web Services 的 Spring Cloud 是一個社群運營的專案。官方網站是 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 社群的所有近期活動。

檢視全部