Skip to content

bootique-examples/bootique-undertow-demo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

verify

bootique-undertow-demo

A simple example that explains how to start Undertow server integrated for Bootique.

For additional help/questions about this example send a message to Bootique forum.

You can find different versions of framework in use at

Prerequisites

  • Java 1.8 or newer.
  • Apache Maven.

Build the Demo

Here is how to build it:

git clone git@github.com:bootique-examples/bootique-undertow-demo.git
cd bootique-undertow-demo
mvn package

Run the Demo

Now you can check the options available in your app:

java -jar target/bootique-undertow-demo-1.0-SNAPSHOT.jar

Option                                              Description
------                                              -----------    
-c yaml_location, --config=yaml_location            Specifies YAML config location, which can be a file path or a URL.

-h, --help                                          Prints this message.

-H, --help-config                                   Prints information about application modules and their configuration options.

-s, --server                                        Starts Undertow server. 

Run Undertow server:

java -jar target/bootique.undertow.demo-1.0-SNAPSHOT.jar

Then open http://localhost:8080/api/ to do GET/POST requests on the server.

In the example one can also find some jUnit tests.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages