jwt

Spring Security With JWT and Oauth2 With Spring Boot

Vikas Ve2ma
Introduction In this article we will see example of how to secure a spring boot rest application with Spring Boot2, Spring Security, Oauth2, and JWT token. 1. Source Code Repository The code used in this article is available in this repository GitHub. 2. Dependencies 2.1. Versions Spring Boot: 2.1.3.RELEASE Java: 1.8 3. Entity Class We create two Entity Classes, one is User and another is Role. User entity class contains user details like name, password, roles details, and role entity contains the role details.