This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 113a4a7f86cfea8983a4fbfd7f07f3af086aee39 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Apr 19 14:15:59 2018 +0200 CAMEL-12383: Migrate to spring boot 2 --- examples/camel-example-spring-boot/readme.adoc | 12 ++++++++++-- .../src/main/resources/application.properties | 8 ++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/examples/camel-example-spring-boot/readme.adoc b/examples/camel-example-spring-boot/readme.adoc index 310c8fb..ca38462 100644 --- a/examples/camel-example-spring-boot/readme.adoc +++ b/examples/camel-example-spring-boot/readme.adoc @@ -21,18 +21,26 @@ You can run this example using mvn spring-boot:run +=== To get health check + +To show a summary of spring boot health check + +---- +curl -XGET -s http://localhost:8080/actuator/health +---- + === To get info about the routes To show a summary of all the routes ---- -curl -XGET -s http://localhost:8080/camel/routes +curl -XGET -s http://localhost:8080/actuator/camel/routes ---- 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/camel/routes/{id}/info ---- diff --git a/examples/camel-example-spring-boot/src/main/resources/application.properties b/examples/camel-example-spring-boot/src/main/resources/application.properties index 0260864..cefe0da 100644 --- a/examples/camel-example-spring-boot/src/main/resources/application.properties +++ b/examples/camel-example-spring-boot/src/main/resources/application.properties @@ -31,16 +31,16 @@ timer.period = 2000 # add for example: &repeatCount=5 to the timer endpoint to make Camel idle #camel.springboot.duration-max-idle-seconds=15 -# show verbose /health/health details so you can see Camel information also +# show verbose health details (/actuator/info) so you can see Camel information also management.endpoint.health.show-details=always +# to turn off Camel info in (/actuator/info) +management.info.camel.enabled=false + # allow to obtain basic information about Camel routes (read only mode) management.endpoint.camelroutes.enabled = true management.endpoint.camelroutes.read-only = true -# to turn off Camel info in: /health/info -#management.info.camel.enabled=false - # to configure logging levels #logging.level.org.springframework = INFO #logging.level.org.apache.camel.spring.boot = INFO -- To stop receiving notification emails like this one, please contact davscl...@apache.org.