You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/06/27 15:49:17 UTC
[camel-spring-boot-examples] 01/01: CAMEL-19510: reactive-streams - Fix the auto configuration
This is an automated email from the ASF dual-hosted git repository.
nfilotto pushed a commit to branch CAMEL-19510/fix-auto-configuration
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
commit 3f8b66222f70968b414a95593a6a0a0024df3b8d
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Tue Jun 27 17:49:01 2023 +0200
CAMEL-19510: reactive-streams - Fix the auto configuration
---
.../apache/camel/example/reactive/streams/RestExample.java | 4 ++--
...gframework.boot.autoconfigure.AutoConfiguration.imports} | 13 ++++++-------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java
index 4f6dc0c..ebd72e6 100644
--- a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java
+++ b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java
@@ -70,8 +70,8 @@ public class RestExample {
.to("direct:sum");
from("direct:sum")
- .setHeader("num1").simple("headerAs(num1,Long)")
- .setHeader("num2").simple("headerAs(num2,Long)")
+ .setHeader("num1").simple("${headerAs(num1,Long)}")
+ .setHeader("num2").simple("${headerAs(num2,Long)}")
.bean("calculator", "sum")
.process(new UnwrapStreamProcessor())
.setBody().simple("The result is: ${body}");
diff --git a/reactive-streams/src/main/resources/META-INF/spring.factories b/reactive-streams/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 90%
rename from reactive-streams/src/main/resources/META-INF/spring.factories
rename to reactive-streams/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
index 18f67dc..637f75f 100644
--- a/reactive-streams/src/main/resources/META-INF/spring.factories
+++ b/reactive-streams/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
@@ -31,12 +31,11 @@
# limitations under the License.
#
-org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
-org.apache.camel.example.reactive.streams.BasicCamelToReactorExample,\
-org.apache.camel.example.reactive.streams.BasicReactorToCamelExample,\
-org.apache.camel.example.reactive.streams.BasicReactorToCamelInOutExample,\
-org.apache.camel.example.reactive.streams.BasicCamelToReactorInOutExample,\
-org.apache.camel.example.reactive.streams.RestExample,\
-org.apache.camel.example.reactive.streams.ClientAPIRestExample,\
+org.apache.camel.example.reactive.streams.BasicCamelToReactorExample
+org.apache.camel.example.reactive.streams.BasicReactorToCamelExample
+org.apache.camel.example.reactive.streams.BasicReactorToCamelInOutExample
+org.apache.camel.example.reactive.streams.BasicCamelToReactorInOutExample
+org.apache.camel.example.reactive.streams.RestExample
+org.apache.camel.example.reactive.streams.ClientAPIRestExample
org.apache.camel.example.reactive.streams.ClientAPIWorkflowExample