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
- Java 1.8 or newer.
- Apache Maven.
Here is how to build it:
git clone git@github.com:bootique-examples/bootique-undertow-demo.git
cd bootique-undertow-demo
mvn package
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.