Http-Server for jersey app with Java standard tools

What: Create a simple http server for a jersey app without traditional application servers.
Why: Kiss & useful for micro services
How: Use built-in java classes

Download the following dependencies (or include them in your pom.xml):

7-line Java way, minimal

Usually, you need a little bit more like:

  • Cors support
  • Jackson
  • Logging

Create the following class:

Add the following lines:

Full example: