Implementing Spring Security Password Flow in a Project

The overall framework is spring-cloud-alibaba-nacos + spring-security + jwt + redis. Authorization Server a. pom.xml for the Authorization Server <!-- Spring Security, OAuth2, and JWT --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-oauth2</artifactId> ...

Posted on Thu, 18 Jun 2026 17:49:25 +0000 by tachekent

Handling Authentication Failures in Spring Security with Custom Error Mapping

When implementing form-based authentication in Spring Security, it's essential to provide meaningful feedback to users upon login failure. By default, Spring Security stores the AuthenticationException in the request scope before forwarding to the configured failure URL. This enables custom error handling logic in the controller. Security Confi ...

Posted on Sun, 14 Jun 2026 17:21:42 +0000 by peranha

Implementing Stateless Authentication with Spring Security and JWT

This guide explores how to implement custom authentication and authorization mechanisms using Spring Security combined with JWT tokens. The approach enables stateless authentication suitable for modern distributed applications and microservices architectures. --- 1. Understending Spring Security's Built-in Authentication Flow Before implementin ...

Posted on Sat, 13 Jun 2026 17:00:23 +0000 by crochk

Integrating Spring Security with Spring Boot: A Comprehensive Guide

Environment Setup JDK version: 17 Build tool: Gradle Spring Boot version: 2.7.18 (Note: Spring Boot 3 introduces significant changes) Spring Security version: 5.7.11 Core Components and Authentication Flow Spring Security implements authentication and authorization through a chain of filters. Each filter has a specific responsibility, and onl ...

Posted on Wed, 27 May 2026 16:36:19 +0000 by NickTyson

Thymeleaf Template Engine: A Comprehensive Guide

Overview Thymeleaf is a modern server-side Java template engine that processes HTML, XML, JavaScript, CSS, and plain text. Unlike traditional templating engines, Thymeleaf can process templates in both web and non-web environments. It uses natural templates that function as static prototypes, enabling seamless collaboration between designers an ...

Posted on Fri, 22 May 2026 23:05:17 +0000 by thenature4u

Spring Boot-Based Construction Project Management System: Architecture and Implementation

This system addresses modern construction project oversight needs by replacing error-prone manual and experience-driven processes with a structured, role-aware digital platform. It supports multi-tiered project hierarchies—such as master projects, sub-projects, developer entities, and timeline tracking—while enforcing granular access control an ...

Posted on Thu, 07 May 2026 11:38:25 +0000 by elearnindia