From 64d6975cfdd2de2a6ad10883b59c874343713d4a Mon Sep 17 00:00:00 2001 From: markfisher Date: Thu, 22 Sep 2016 12:12:35 -0400 Subject: [PATCH] added boot plugin --- README.md | 18 ++++++++++++++++-- spring-cloud-function-stream/pom.xml | 8 ++++++++ spring-cloud-function-web/pom.xml | 9 +++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b856efad..22abd44a8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,21 @@ -Example: +Example Stream Application: ``` -java -jar spring-cloud-function-stream-1.0.0.BUILD-SNAPSHOT.jar --server.port=8081 --spring.cloud.stream.bindings.input.destination=words --spring.cloud.stream.bindings.output.destination=uppercaseWords --function.name=uppercase --function.code="f -> f.map(s -> s.toString().toUpperCase())" +> java -jar spring-cloud-function-stream-1.0.0.BUILD-SNAPSHOT.jar + --server.port=8081 + --spring.cloud.stream.bindings.input.destination=words + --spring.cloud.stream.bindings.output.destination=uppercaseWords + --function.name=uppercase + --function.code="f -> f.map(s -> s.toString().toUpperCase())" +``` + +Example REST Application: + +``` +> java -jar spring-cloud-function-web-1.0.0.BUILD-SNAPSHOT.jar + --web.path=/demo + --function.name=uppercase + --function.code="f -> f.map(s -> s.toString().toUpperCase())" ``` (more docs soon) diff --git a/spring-cloud-function-stream/pom.xml b/spring-cloud-function-stream/pom.xml index 51b6da3f0..aafa6419a 100644 --- a/spring-cloud-function-stream/pom.xml +++ b/spring-cloud-function-stream/pom.xml @@ -47,4 +47,12 @@ + + + + org.springframework.boot + spring-boot-maven-plugin + + + diff --git a/spring-cloud-function-web/pom.xml b/spring-cloud-function-web/pom.xml index b736cfbd0..978ee9c17 100644 --- a/spring-cloud-function-web/pom.xml +++ b/spring-cloud-function-web/pom.xml @@ -52,4 +52,13 @@ + + + + org.springframework.boot + spring-boot-maven-plugin + + + +