java-tutorials/spring-boot-modules/spring-boot-camel
François Dupire 1ff6672223 [JAVA-1670] Upgraded JUnit and Maven Surefire Plugin in spring-boot-m… (#9509)
* [JAVA-1670] Upgraded JUnit and Maven Surefire Plugin in spring-boot-modules

* Upgraded Maven Surefire Plugin version to 2.22.2

* Upgraded JUnit version to 5.6.2

* [JAVA-1670] Phasing upgrade - Inheriting form parent-boot-2

* Reverted JUnit version upgrade for now (will focus on parent/child relationships first)

* Changed parent pom of spring-boot-modules to parent-boot-2

* Upgraded JUnit version to 5.6.2 in spring-boot-modules
2020-06-30 22:25:30 +05:30
..
src JAVA-117 Standardize spring-boot-modules 2020-04-04 21:47:45 +02:00
README.md BAEL-20858 Move Spring Boot Properties module to Spring Boot modules 2020-01-27 00:19:57 +01:00
pom.xml [JAVA-1670] Upgraded JUnit and Maven Surefire Plugin in spring-boot-m… (#9509) 2020-06-30 22:25:30 +05:30

README.md

Spring Boot Camel

This module contains articles about Spring Boot with Apache Camel

Example for the Article on Camel API with SpringBoot

To start, run:

mvn spring-boot:run

Then, make a POST http request to:

http://localhost:8080/camel/api/bean

Include the HEADER: Content-Type: application/json,

and a BODY Payload like:

{"id": 1,"name": "World"}

We will get a return code of 201 and the response: Hello, World - if the transform() method from Application class is uncommented and the process() method is commented

or return code of 201 and the response: {"id": 10,"name": "Hello, World"} - if the transform() method from Application class is commented and the process() method is uncommented

Relevant articles: