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.
Notice regarding the application of Spring Boot 4.1 sample code
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!
Free




