sdk-java/docs/spring.md

1.5 KiB

title nav_order
CloudEvents Spring 5

CloudEvents Spring

Javadocs

This module provides the integration of CloudEvent with different Spring APIs, like MVC, WebFlux and Messaging

For Maven based projects, use the following dependency:


<dependency>
    <groupId>io.cloudevents</groupId>
    <artifactId>cloudevents-spring</artifactId>
    <version>2.0.0</version>
</dependency>

Introduction

This module provides classes and interfaces that can be used by Spring frameworks and integrations to assist with Cloud Event processing.

Given that Spring defines Message abstraction, which perfectly maps to the structure defined by Cloud Events specification, one may say Cloud Events are already supported by any Spring framework that relies on Message. So this modules provides several utilities and interfaces to simplify working with Cloud Events in the context of Spring frameworks and integrations (see individual component's javadocs for more details).

Examples

Check out the samples:

  • spring-reactive shows how to receive and send CloudEvents through HTTP using Spring Boot and Webflux.