|
13 | 13 | import org.springframework.boot.SpringApplication; |
14 | 14 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
15 | 15 | import org.springframework.boot.web.servlet.ServletRegistrationBean; |
16 | | -import org.springframework.boot.web.support.SpringBootServletInitializer; |
17 | 16 | import org.springframework.context.annotation.Bean; |
18 | 17 | import org.springframework.context.annotation.ComponentScan; |
19 | 18 | import org.springframework.stereotype.Component; |
20 | 19 |
|
21 | 20 | @SpringBootApplication |
22 | 21 | @ComponentScan(basePackages="com.baeldung.camel") |
23 | | -public class Application extends SpringBootServletInitializer { |
| 22 | +public class Application{ |
24 | 23 |
|
25 | 24 | @Value("${server.port}") |
26 | 25 | String serverPort; |
@@ -62,10 +61,12 @@ public void configure() { |
62 | 61 | .bindingMode(RestBindingMode.json) |
63 | 62 | .dataFormatProperty("prettyPrint", "true"); |
64 | 63 | /** |
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. |
69 | 70 | */ |
70 | 71 |
|
71 | 72 | rest("/api/").description("Teste REST Service") |
|
0 commit comments