Fading Coder

One Final Commit for the Last Sprint

Implementing Authentication, Login Flow and User Management in Spring Security 5.7.5 GA

Core Authentication Components Spring Security's authentication subsystem relies on standardized interfaces to decouple different workflow stages: Authentication: Stores the identity and granted permissions of the requesting party AuthenticationManager: Orchestrates the full authentication verificat...

Integrating Thymeleaf in Spring Boot Projects

Thymeleaf aims to bring elegant natural templates in to the development workflow, allowing HTML to display correct in browsers and function as static prototypes for easier team collaboration. It supports HTML, XML, JavaScript, CSS, and plain text. JSP has long been significant in the view layer, but...

Spring Boot 3.3.1 Migration: HandlerInterceptor and WebMvcConfigurer Replacements

Interceptor Changes in Spring MVC The abstract class HandlerInterceptorAdapter was removed in Spring Boot 3.3.1. Earlier, you could extend this class; now you must implement the HandlerInterceptor interface directly. Before (Spring Boot 2.x): import javax.servlet.http.HttpServletRequest; import java...

Implementing Video Chunked Upload and HLS Transcoding with Spring Boot and FFmpeg on Windows

Core Concepts of Chunked Upload Chunked upload involves dividing a file into smaller segments based on a defined rule, such as a fixed size like 20MB per chunk. Each file is assigned a unique identifier to distinguish its segmnets during upload. After all chunk are uploaded, the server validates and...

Building a WeChat Mini Program Ordering System with Spring Boot and Vue.js

Spring Boot is a development framework built on top of the Spring Framework. It simplifies configuration by embedding servers like Tomcat and provides powerful auto-configuration based on project dependencies. This framework offers out-of-the-box features and plugins such as Spring Data and Spring S...

Annotation-Driven CRUD Operations with MyBatis and Lombok

Lombok streamlines Java development by generating boilerplate code at compile time through annotations. To integrate it, add the following dependency: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope> &...

Implementing MQTT Message Reception in Spring Boot Applications

MQTT is a lightweight, publish-subscribe network protocol designed for constrained devices and low-bandwidth, high-latency networks. It is a popular choice for Internet of Things (IoT) applications due to its low power consumption and reliability. Dependencies for Spring Boot MQTT Integration To beg...

Implementing Declarative Caching in Spring Boot with Spring Cache and Redis

Dependency Configuration To integrate Spring Cache with a Redis backend, include the following dependencies in your Maven configuration. Spring Boot automatically selects the cache implementation based on the available libraries on the classpath. <dependency> <groupId>org.springframework...

Implementing JWT Authentication with Apache Shiro in Spring Boot

Core Components Apache Shiro requires three main configurations for JWT integration: Custom Realm: Handles authentication and authorization logic by validaitng JWT tokens and retrieving user roles Security Manager: Manages security operations and connects the realm to Shiro's filter system Filter Fa...

Handling Request Parameters in Spring Boot REST APIs

Project Structure Setup When creating a Spring Boot web project, ensure the main application class and all controller are located in the same package or subpackages that fall within the component scan scope. MainApplication └── controller/ └── UserController.java Simple Parameters Simple query param...