Practical writing on Java, Spring, AI, and the craft of software engineering.

If you're building with Java and Spring (or trying to figure out where AI fits into your development workflow) you're in the right place. I write practical, beginner-friendly deep dives on Spring Boot, Spring AI, and software engineering fundamentals, collected here in chronological order.

Filtering by tag: Spring Security

Spring Security 7 Multi-Factor Authentication: Complete Tutorial with @EnableMultiFactorAuthentication
Latest

Spring Security 7 Multi-Factor Authentication: Complete Tutorial with @EnableMultiFactorAuthentication

· 28 min read

Learn how to implement multi-factor authentication (MFA) in Spring Boot 4 using Spring Security 7's new @EnableMultiFactorAuthentication annotation. Step-by-step tutorial with one-time token login and custom PIN codes.

Spring BootSpring Security
Spring Boot
· 10 min read

RestClient OAuth2 Support in Spring Security 6.4: A Complete Guide

Learn how to implement OAuth2 authentication in your Spring applications using the new RestClient OAuth2 support in Spring Security 6.4. This guide covers architecture, implementation, and best practices for secure service-to-service communication.

Building a Spring Security Login Form with JTE
· 20 min read

Building a Spring Security Login Form with JTE

Learn how to create a secure login form using Spring Security and JTE (Java Template Engine) with support for both traditional authentication and OAuth2 providers.

Demystifying Spring Session: A Comprehensive Introduction for Java Developers!
· 9 min read

Demystifying Spring Session: A Comprehensive Introduction for Java Developers!

In this tutorial, we'll explore the powerful features of Spring Session and learn how to effectively manage user sessions in your Java web applications.

OAuth2 Login Made Easy in Java: A Spring Boot & Spring Security Walkthrough
· 7 min read

OAuth2 Login Made Easy in Java: A Spring Boot & Spring Security Walkthrough

In this tutorial, we will discuss how to set up OAuth 2 logins in Spring Security with Spring Boot.

Advanced Spring Security - How to create multiple Spring Security Configurations
· 13 min read

Advanced Spring Security - How to create multiple Spring Security Configurations

In this tutorial, we will discuss how to create multiple Spring Security configurations and why you might want to do so.

Spring Security Configuration - Lambda DSL
· 10 min read

Spring Security Configuration - Lambda DSL

What's new in Spring Security 6
· 6 min read

What's new in Spring Security 6

In this article we will discuss the new features of Spring Security 6 and create a new Spring Boot 3 project together.

Spring Security CORS: How to configure CORS in Spring Boot & Spring Security
· 13 min read

Spring Security CORS: How to configure CORS in Spring Boot & Spring Security

How to Secure your REST APIs with Spring Security & JSON Web Tokens (JWTs)
· 35 min read

How to Secure your REST APIs with Spring Security & JSON Web Tokens (JWTs)

In this tutorial, you will learn how to secure REST APIs with Spring Security and JSON Web Tokens (JWTs).