An open API service indexing awesome lists of open source software.

https://github.com/gullerya/jax-rs-template

Template for pure JAX-RS application deployed into Docker based container
https://github.com/gullerya/jax-rs-template

Last synced: 2 months ago
JSON representation

Template for pure JAX-RS application deployed into Docker based container

Awesome Lists containing this project

README

        

# JAX-RS template for Docker

This project is a copy-pasteable template of a pure JAX-RS application, including the setup to build it into a servlet container based Docker.

## Main aspects:
- application uses ONLY JAX-RS annotations
- bean management by Spring
- logging by SLF4J + LOG4J2
- JAX-RS by Jersey (runtime dependency, no Jersey imports / awareness in the code)
- Docker based deployment, several servlet containers example

## JAX-RS features implemented:
- main application initializer
- Resource
- Filter
- ExceptionMapper

## Servlet containers:
- Jetty
- Tomcat
- Wildfly (WIP, not yet working)

## Running dev (with Jetty plugin, not in Docker)
In order to start the app in a debuggable fashion as a simple Java process,
this project uses Jetty plugin.

Execute `mvn jetty:run`