Spring Boot JWT Tutorial
You can quickly and easily learn the basics of authentication and authorization through tutorials using Spring Boot, Spring Security, and JWT.
News
3 articles
Hello!
I have updated the lecture sample code to match Spring Boot version 4.1.
Although the lecture videos were filmed based on an older version, the GitHub repositories below have been updated to work with the latest version.
The concepts and flow are the same as in the video.
🔗 Sample Code- Java : https://github.com/SilverNine/spring-boot-jwt-tutorial
- Kotlin : https://github.com/SilverNine/spring-boot-jwt-tutorial-kotlin
Execution Requirements- JDK 21 or higher required (Gradle Wrapper included, no separate Gradle installation necessary)
- Execution: ./gradlew bootRun
Key Changes
- Applied Spring Boot 4.1 (Spring Framework 7 / Spring Security 7)
- Updated build environment based on Java 21 and Gradle 9 (Kotlin 2.3 for Kotlin repo)
- Migrated to new jjwt 0.12+ APIs
- Responding to Spring Boot 4 structural changes (package relocation, Jackson 3, test module separation, etc.)
- Added test code (JUnit 5 based, verifying major flows for authentication/sign-up)
Thank you!hello!
I'm sorry that I can't properly answer your questions due to my busy daily life. 🙇♂️
We have prepared the following with an apologetic heart!
- Modified sample code to match Spring Boot version 2.7.2.
- Added Kotlin version.
Java : https://github.com/SilverNine/spring-boot-jwt-tutorial
Kotlin : https://github.com/SilverNine/spring-boot-jwt-tutorial-kotlin
- Spring Boot 2.5.3, Gradle 7.1.1
- Added @Valid ExceptionHandler (Thank you for the question, Boki. ^^)
I applied it to the sample code below. I think it would be good to refer to it :)

