Update SNAPSHOT to 3.0.0.RELEASE
This commit is contained in:
25
README.adoc
25
README.adoc
@@ -100,31 +100,6 @@ HELLOWORLD
|
|||||||
(You can use `^Q^J` in a terminal to insert a new line in a literal
|
(You can use `^Q^J` in a terminal to insert a new line in a literal
|
||||||
string like that.)
|
string like that.)
|
||||||
|
|
||||||
== Building and Running a Function
|
|
||||||
|
|
||||||
The sample `@SpringBootApplication` above has a function that can be
|
|
||||||
decorated at runtime by Spring Cloud Function to be an HTTP endpoint,
|
|
||||||
or a Stream processor, for instance with RabbitMQ, Apache Kafka or
|
|
||||||
JMS.
|
|
||||||
|
|
||||||
The `@Beans` can be `Function`, `Consumer` or `Supplier` (all from
|
|
||||||
`java.util`), and their parametric types can be String or POJO.
|
|
||||||
|
|
||||||
Functions can also be of `Flux<String>` or `Flux<Pojo>` and Spring
|
|
||||||
Cloud Function takes care of converting the data to and from the
|
|
||||||
desired types, as long as it comes in as plain text or (in the case of
|
|
||||||
the POJO) JSON. There is also support for `Message<Pojo>` where the
|
|
||||||
message headers are copied from the incoming event, depending on the
|
|
||||||
adapter. The web adapter also supports conversion from form-encoded
|
|
||||||
data to a `Map`, and if you are using the function with Spring Cloud
|
|
||||||
Stream then all the conversion and coercion features for message
|
|
||||||
payloads will be applicable as well.
|
|
||||||
|
|
||||||
Functions can be grouped together in a single application, or deployed
|
|
||||||
one-per-jar. It's up to the developer to choose. An app with multiple
|
|
||||||
functions can be deployed multiple times in different "personalities",
|
|
||||||
exposing different functions over different physical transports.
|
|
||||||
|
|
||||||
== Building
|
== Building
|
||||||
|
|
||||||
:jdkversion: 1.7
|
:jdkversion: 1.7
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Spring Cloud Function Docs</name>
|
<name>Spring Cloud Function Docs</name>
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<name>Spring Cloud Function Parent</name>
|
<name>Spring Cloud Function Parent</name>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<name>spring-cloud-function-adapter-parent</name>
|
<name>spring-cloud-function-adapter-parent</name>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
<artifactId>spring-cloud-function-adapter-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-function-dependencies</artifactId>
|
<artifactId>spring-cloud-function-dependencies</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Spring Cloud Function Dependencies</name>
|
<name>Spring Cloud Function Dependencies</name>
|
||||||
<description>Spring Cloud Function Dependencies</description>
|
<description>Spring Cloud Function Dependencies</description>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<wrapper.version>1.0.22.RELEASE</wrapper.version>
|
<wrapper.version>1.0.22.RELEASE</wrapper.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
<aws-lambda-events.version>2.0.2</aws-lambda-events.version>
|
<aws-lambda-events.version>2.0.2</aws-lambda-events.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<start-class>example.Config</start-class>
|
<start-class>example.Config</start-class>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<reactor.version>3.1.2.RELEASE</reactor.version>
|
<reactor.version>3.1.2.RELEASE</reactor.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<reactor.version>3.1.2.RELEASE</reactor.version>
|
<reactor.version>3.1.2.RELEASE</reactor.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.21.RELEASE</wrapper.version>
|
<wrapper.version>1.0.21.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.10.RELEASE</wrapper.version>
|
<wrapper.version>1.0.10.RELEASE</wrapper.version>
|
||||||
<reactor.version>3.1.2.RELEASE</reactor.version>
|
<reactor.version>3.1.2.RELEASE</reactor.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<spring-cloud-function.version>3.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
|
<spring-cloud-function.version>3.0.0.RELEASE</spring-cloud-function.version>
|
||||||
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
<wrapper.version>1.0.17.RELEASE</wrapper.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
<relativePath>..</relativePath>
|
<relativePath>..</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-function-web</artifactId>
|
<artifactId>spring-cloud-starter-function-web</artifactId>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-parent</artifactId>
|
<artifactId>spring-cloud-function-parent</artifactId>
|
||||||
<version>3.0.0.BUILD-SNAPSHOT</version>
|
<version>3.0.0.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-function-webflux</artifactId>
|
<artifactId>spring-cloud-starter-function-webflux</artifactId>
|
||||||
<name>spring-cloud-starter-function-webflux</name>
|
<name>spring-cloud-starter-function-webflux</name>
|
||||||
|
|||||||
Reference in New Issue
Block a user