java-tutorials/spring-boot-modules/spring-boot-camel
Jonathan Cook 90812f01ee BAEL-5236 - Apache Camel Exception Handling (#12973)
* BAEL-4706 - Spring Boot with Spring Batch

* BAEL-3948 - Fix test(s) in spring-batch which leaves repository.sqlite
changed

* BAEL-4736 - Convert JSONArray to List of Object using camel-jackson

* BAEL-4756 - Mockito MockSettings

* BAEL-4756 - Mockito MockSettings - fix spelling

* BAEL-2674 - Upgrade the Okhttp article

* BAEL-4204 - Adding Interceptors in OkHTTP

* BAEL-4836 - Mocking Static Methods with Mockito

* BAEL-4205 - A Guide to Events in OkHTTP

* BAEL-5408 - Update Camel version in spring-boot-camel module

* BAEL-5234 - Apache Camel Routes Testing in Spring Boot

* BAEL-5234 - Apache Camel Routes Testing in Spring Boot

* BAEL-5237 - Apache Camel Conditional Routing

* BAEL-5236 - Apache Camel Exception Handling

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2022-11-03 09:40:26 -07:00
..
src BAEL-5236 - Apache Camel Exception Handling (#12973) 2022-11-03 09:40:26 -07:00
.gitignore BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00
README.md Updated README.md 2022-09-02 09:03:18 +05:00
pom.xml BAEL-5234 - Apache Camel Routes Testing in Spring Boot (#11925) 2022-03-14 15:35:32 -07:00

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: