This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new dbfe36b  [CAMEL-17584]camel-spring-boot-examples:xml example is broken
dbfe36b is described below

commit dbfe36b978a22b3b9ef2a6a20a16a969830185e7
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Tue Feb 1 12:29:11 2022 -0500

    [CAMEL-17584]camel-spring-boot-examples:xml example is broken
---
 xml/pom.xml                                   | 2 +-
 xml/readme.adoc                               | 4 ++--
 xml/src/main/resources/application.properties | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/xml/pom.xml b/xml/pom.xml
index d2ed451..3c8044a 100644
--- a/xml/pom.xml
+++ b/xml/pom.xml
@@ -70,7 +70,7 @@
         </dependency>
         <dependency>
             <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-actuator</artifactId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
         </dependency>
 
         <!-- Camel -->
diff --git a/xml/readme.adoc b/xml/readme.adoc
index a02346d..a25b161 100644
--- a/xml/readme.adoc
+++ b/xml/readme.adoc
@@ -26,13 +26,13 @@ You can run this example using
 To show a summary of all the routes
 
 ----
-curl -XGET -s http://localhost:8080/camel/routes
+curl -XGET -s http://localhost:8080/actuator/camelroutes
 ----
 
 To show detailed information for a specific route
 
 ----
-curl -XGET -s http://localhost:8080/camel/routes/{id}/info
+curl -XGET -s http://localhost:8080/actuator/camelroutes/{id}/info
 ----
 
 === Help and contributions
diff --git a/xml/src/main/resources/application.properties 
b/xml/src/main/resources/application.properties
index b4088ad..67115c8 100644
--- a/xml/src/main/resources/application.properties
+++ b/xml/src/main/resources/application.properties
@@ -34,6 +34,8 @@ greeting = Hello World
 # how often to trigger the timer
 timer.period = 2000
 
+# expose actuator endpoint via HTTP
+management.endpoints.web.exposure.include=camelroutes
 # turn on actuator health check
 management.endpoint.health.enabled = true
 

Reply via email to