Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

bootique-examples/bootique-undertow-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

verify

bootique-undertow-demo

WARNING: the last release of Bootique that supports "bootique-undertow" is 3.0. It is currently deprecated, and will be removed from Bootique 4.0. We recommend our users to switch to Jetty, or to fork "bootique-undertow" and support it on their own.

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-2.0.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-2.0.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

Languages