Skip to content

Commit 292d9f8

Browse files
dcassianizhendrikse
authored andcommitted
PR for BAEL-798 - Apache Camel with Spring Boot (eugenp#2280)
* initial import * simplified to rest only * simplifications * update * Create ExampleServices.java * Update Application.java * simple readme * strip of dependency management * setting Camel versions apart where affected * Update README.md * update comments * Update pom.xml * delete of fabri8 deployment.yml * remove extends
1 parent c910f25 commit 292d9f8

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎camel-api/src/main/java/com/baeldung/camel/Application.java‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
import org.springframework.boot.SpringApplication;
1414
import org.springframework.boot.autoconfigure.SpringBootApplication;
1515
import org.springframework.boot.web.servlet.ServletRegistrationBean;
16-
import org.springframework.boot.web.support.SpringBootServletInitializer;
1716
import org.springframework.context.annotation.Bean;
1817
import org.springframework.context.annotation.ComponentScan;
1918
import org.springframework.stereotype.Component;
2019

2120
@SpringBootApplication
2221
@ComponentScan(basePackages="com.baeldung.camel")
23-
public class Application extends SpringBootServletInitializer {
22+
public class Application{
2423

2524
@Value("${server.port}")
2625
String serverPort;
@@ -62,10 +61,12 @@ public void configure() {
6261
.bindingMode(RestBindingMode.json)
6362
.dataFormatProperty("prettyPrint", "true");
6463
/**
65-
The Rest DSL supports automatic binding json/xml contents to/from POJOs using Camels Data Format.
66-
By default the binding mode is off, meaning there is no automatic binding happening for incoming and outgoing messages.
67-
You may want to use binding if you develop POJOs that maps to your REST services request and response types.
68-
This allows you, as a developer, to work with the POJOs in Java code.
64+
The Rest DSL supports automatic binding json/xml contents to/from
65+
POJOs using Camels Data Format.
66+
By default the binding mode is off, meaning there is no automatic
67+
binding happening for incoming and outgoing messages.
68+
You may want to use binding if you develop POJOs that maps to
69+
your REST services request and response types.
6970
*/
7071

7172
rest("/api/").description("Teste REST Service")

0 commit comments

Comments
 (0)