JWT Authentication Implementation for Login Verification
Understanding JWT Structure
JWT (JSON Web Token) is an open standard (RFC 7519) that defines a compact method for securely transmitting information betwean parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs are commonly used for authentication and authorization purposes in web application ...
Posted on Thu, 28 May 2026 18:34:37 +0000 by rishiraj
Simulating and Diagnosing JVM Out-of-Memory Errors in Spring Boot
Reproducing Heap Exhaustion
Bootstrap a Spring Boot application and add the web starter dependancy:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Implement an endpoint that continuously reserves large blocks of memory:
import o ...
Posted on Wed, 27 May 2026 22:12:06 +0000 by tomtimms
Cache Consistency Patterns: Implementing Delayed Double Deletion with Spring Boot AOP and Redis
Understanding the Consistency Challenge
In high-concurrency environments, siumltaneous database mutations create temporal windows where Redis caches diverge from persistent storage. Consider two concurrent update threads:
Thread Alpha: Updates database record → Updates cache entry
Thread Beta: Updates database record → Updates cache entry
Exe ...
Posted on Tue, 26 May 2026 19:52:39 +0000 by zulubanshee
WeChat Official Account QR Code Payment Integration
Implementing QR code payment functionality within a WeChat Official Account requires proper configuration of merchant credantials including merchant ID, API key, and calllback URLs in the payment platform dashboard.
The frontend component displays the generated QR code using HTML:
<div id="qrcode-container"></div>
<div ...
Posted on Tue, 26 May 2026 17:52:24 +0000 by nafetski
Building an Online Art Gallery System with SSM and Vue.js
Introduction
This article details the design and implementation of an online art gallery system, built using the SSM (Spring, Spring MVC, MyBatis) backend framework alongside Vue.js for the frontend. The project includes source code, database scripts, and design documentation. It serves as a comprehensive reference for developers looking to cre ...
Posted on Mon, 25 May 2026 21:35:49 +0000 by Wuhtzu
Hospital Backend Management System Using Spring Boot and Vue
Modern healthcare institutions require efficient, secure, and scalable systems to manage complex administrative workflows. This system addresses critical hospital operations—including patient records, prescriptions, ward assignments, doctor scheduling, medication inventory, and announcements—through a robust full-stack architecture built with S ...
Posted on Sun, 24 May 2026 18:12:47 +0000 by Jimmy_uk
Building a Custom Spring Boot Auto-Configuration Module
Defining the Service Interface and Implementation
Create a project with standard configure, service, and impl packages. First, define a core service interface for string processing.
// Text processing service contract
package com.example.textprocessor.service;
import java.util.Collection;
public interface TextTokenizer {
Collection<Str ...
Posted on Fri, 22 May 2026 16:41:20 +0000 by JeremyMorgan
Spring Boot Persistence with MyBatis
MyBatis is a lightweight SQL-mapping framweork that removes most JDBC boiler-plate while still giving full control over SQL. The following walkthrough shows how to integrate it into a Spring Boot project and perform common CRUD operations.
Project bootstrap and data source configuration
Create a new Spring Boot project with the spring-boot- ...
Posted on Wed, 20 May 2026 08:09:11 +0000 by AceE
Spring Boot Auto-Configuration Internals and Mechanisms
Auto-Configuration OverviewAuto-configuration dynamically registers beans into the Inversion of Control (IoC) container based on the jar dependencies present on the classpath. These beans can then be injected using annotations like @Autowired or @Resource.Decomposing the @SpringBootApplication AnnotationThe entry point of a Spring Boot applicat ...
Posted on Tue, 19 May 2026 20:40:01 +0000 by lhcpr
Implementing Strategy Pattern in Spring Boot to Replace Conditional Logic
First, define the strategy interface and its various implementations:
// Strategy contract for payment processing
public interface PaymentProcessor {
TransactionResult processTransaction(PaymentRequest request);
}
// Credit card payment implementation
@Service
public class CreditCardPaymentProcessor implements PaymentProcessor {
@Overr ...
Posted on Tue, 19 May 2026 18:15:36 +0000 by ace01