You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/04/27 08:29:09 UTC
[2/5] camel git commit: replaced servlet component registration with
starter
replaced servlet component registration with starter
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/55096289
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/55096289
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/55096289
Branch: refs/heads/master
Commit: 550962898976e1beb45b3f0feda6fb31f8a3e210
Parents: 239332c
Author: manos <ma...@sobol>
Authored: Wed Apr 26 19:44:42 2017 +0300
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Apr 27 09:30:36 2017 +0200
----------------------------------------------------------------------
.../camel-example-spring-boot-geocoder/pom.xml | 8 ++++++++
.../example/springboot/geocoder/Application.java | 17 +++++++----------
2 files changed, 15 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/55096289/examples/camel-example-spring-boot-geocoder/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-geocoder/pom.xml b/examples/camel-example-spring-boot-geocoder/pom.xml
index adf7ce5..5fba6e4 100644
--- a/examples/camel-example-spring-boot-geocoder/pom.xml
+++ b/examples/camel-example-spring-boot-geocoder/pom.xml
@@ -67,6 +67,14 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-spring-boot-starter</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-servlet-starter</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-geocoder-starter</artifactId>
</dependency>
<dependency>
http://git-wip-us.apache.org/repos/asf/camel/blob/55096289/examples/camel-example-spring-boot-geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/Application.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/Application.java b/examples/camel-example-spring-boot-geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/Application.java
index 5896f1a..25f5f1f 100644
--- a/examples/camel-example-spring-boot-geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/Application.java
+++ b/examples/camel-example-spring-boot-geocoder/src/main/java/org/apache/camel/example/springboot/geocoder/Application.java
@@ -16,15 +16,19 @@
*/
package org.apache.camel.example.springboot.geocoder;
-import org.apache.camel.component.servlet.CamelHttpTransportServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.web.servlet.ServletRegistrationBean;
-import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class Application {
+ /*
+ * For PMD HideUtilityClassConstructorCheck
+ */
+ private void noop() {
+
+ }
+
/**
* Main method to start the application.
*/
@@ -32,11 +36,4 @@ public class Application {
SpringApplication.run(Application.class, args);
}
- @Bean
- public ServletRegistrationBean camelServletRegistrationBean() {
- ServletRegistrationBean registration = new ServletRegistrationBean(new CamelHttpTransportServlet(), "/camel/*");
- registration.setName("CamelServlet");
- return registration;
- }
-
}