In this tutorial, we’re gonna build a Spring Boot, Spring Security that supports JWT working with H2 embedded Database. You’ll know:
- Flow for User Login, Registration, Authorization with JWT and HttpOnly Cookie
- Spring Boot Rest Api Architecture with Spring Security and JWT
- How to configure Spring Security to work with JWT
- How to define Data Models and association for Authentication and Authorization
- Way to use Spring Data JPA to interact with H2 Database
– Related Posts:
- Using Token in HTTP Authorization Headers
- Spring Boot JPA + H2 example: CRUD Rest APIs
- Spring Boot File upload example
- @RestControllerAdvice example in Spring Boot
- Spring Boot @ControllerAdvice & @ExceptionHandler example
- @DataJpaTest example for Spring Data Repository Unit Test
- Documentation: Spring Boot + Swagger 3 example (with OpenAPI 3)
- Spring Boot Redis Cache example
- Spring Boot custom Validation example
Other Databases:
– Spring Boot, Spring Security example with JWT and MySQL
– Spring Boot, Spring Security example with JWT and MongoDB