spring-security-refresh-token-jwt-implementation-spring-boot-feature-image

Spring Security Refresh Token with JWT in Spring Boot

In previous post, we’ve known how to build Token based Authentication & Authorization with Spring Security & JWT. This tutorial will continue to make JWT Refresh Token with Spring Security in the Java Spring Boot Application. You can know how to expire the JWT Token, then renew the Access Token with Refresh Token and HttpOnly Cookie.

Related Posts:

Deployment:
Deploy Spring Boot App on AWS – Elastic Beanstalk
Docker Compose: Spring Boot and MySQL example

The code in this post bases on previous article that you need to read first:
Spring Boot JWT Auth example with H2 Database
Spring Boot JWT Auth example with MySQL
Spring Boot JWT Auth example with MongoDB

Read More

websecurityconfigureradapter-deprecated-spring-boot-feature-image

WebSecurityConfigurerAdapter Deprecated in Spring Boot

From Spring Boot 2.7, WebSecurityConfigurerAdapter is deprecated. In this tutorial, I will show you how to update your Web Security Config class in Spring Security without the WebSecurityConfigurerAdapter example.

Related Posts:
In-depth Introduction to JWT-JSON Web Token
Spring Boot, Spring Security example with JWT
Spring Boot, Spring Security example with JWT and MySQL/PostgreSQL
Spring Boot, Spring Security example with JWT and MongoDB

Read More

jpa-hibernate-one-to-one-unidirectional-feature-image

JPA/Hibernate One To One unidirectional mapping in Spring Boot

In this tutorial, I will show you how to implement Spring JPA One-To-One unidirectional mapping with Hibernate in a Spring Boot example using @OneToOne annotation. You’ll know:

  • How to configure Spring Data, JPA, Hibernate to work with Database
  • How to define Data Models and Repository interfaces for JPA One-To-One relationship
  • Way to use Spring JPA to interact with Database for One-To-One association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
JPA One To Many example with Hibernate and Spring Boot
JPA Many to Many example with Hibernate in Spring Boot
Spring Boot Token based Authentication with Spring Security & JWT
Spring JPA + H2 example
Spring JPA + MySQL example
Spring JPA + PostgreSQL example
Spring JPA + Oracle example
Spring JPA + SQL Server example

Read More

spring-boot-angular-14-mongodb-example-feature-image

Angular 14 + Spring Boot + MongoDB example: CRUD App

In this tutorial, we will learn how to build a full stack Angular 14 + Spring Boot + MongoDB example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST Controller and Spring Data MongoDB for interacting with MongoDB database. Front-end side is made with Angular 14, HttpClient & Router.

More Practice:
Angular + Spring Boot: Pagination example
Angular + Spring Boot: JWT Authentication example
Angular + Spring Boot: File upload example

Other versions:
Using Angular 8
Using Angular 10
Using Angular 11
Using Angular 12
Using Angular 13

Read More