Giter Club home page Giter Club logo

spring-boot-camel-rest's Introduction

Spring Boot Example

This example shows how to create a project using camel-spring-boot, the REST DSL, and restlet.

The example creates a REST endpoint that returns a "Hello World" message. To test the example, navigate to http://localhost:8080/rest/hello

This example exposes Jolokia API and Spring Boot actuators endpoints (like metrics) via the webmvc endpoint. We consider this as the best practice - Spring Boot applications with these API exposed can be easily monitored and managed by the 3rd parties tools.

We recommend to package your application as a fat WAR. Fat WARs can be executed just as regular fat jars, but you can also deploy them to the servlet containers like Tomcat. Fat WAR approach gives you the deployment flexibility, so we highly recommend it.

You will need to compile this example first: mvn install

To run the example type mvn spring-boot:run

You can also execute the fat WAR directly:

java -jar target/spring-boot-camel-rest-1.0-SNAPSHOT.war

To stop the example hit ctrl + c

Additionally, this example contains the necessary .openshift files to deploy to OpenShift online in a DIY cartridge.

For more help see the Apache Camel documentation

http://camel.apache.org/

spring-boot-camel-rest's People

Contributors

brentos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.