A maven web-app Java project setup that demonstrates the usage of Jersey2, JSON communication, JSON Web Token authentication as well as role authorization using annotations. The project is fully runnable using DAO objects to access either OrientDB or SQLite as backend storage.
Detailed explanation can be found here: tutorial-academy.com