Vue Component for File Upload with Base64 Encoding and Spring Boot Backend

Implementation Frontend: Vue Component A reusable file upload component that converts selected images to base64 format and sends them to the backend. <template> <el-avatar :size="80" :src="avatarSrc" @click="showDialog = true" style="cursor: pointer;" > <img src= ...

Posted on Thu, 04 Jun 2026 17:47:31 +0000 by Monk3h

Spring Boot Essential Knowledge: One-to-Many Relationships, MyBatis-Plus, and Configuration

One-to-Many Relationship: Server-Side CRUD with Pagination @Service @Slf4j public class BookServiceImpl implements BookService { @Autowired private BookMapper bookMapper; @Override public PageResult<BookModel> searchBooks(SearchCriteria criteria) { PageHelper.startPage(criteria.getPage(), criteria.getPageSize()); ...

Posted on Thu, 04 Jun 2026 17:14:43 +0000 by hrdyzlita

Evolution of Spring Configuration and Building Your First Spring Boot Application

The configuration approach in the Spring ecosystem has shifted significant over the years. Early Spring (1.x Era) In the initial release, dependency injection and bean definitions were managed exclusively through verbose XML files. As applications grew, this led to massive configuration files and tangled dependency graphs, making maintenance di ...

Posted on Wed, 03 Jun 2026 17:15:42 +0000 by locomotive

Analysis of Kafka Message Loss During Deployment Restarts

A colleague from another team reported that during project releases or restarts (using kill -15), C-end business services often experienced issues leading to financial loss. After hearing about potential money loss, I immediately took responsibility, gathered details, and started investigating. Problem Analysis Based on the descriptoin and my k ...

Posted on Mon, 01 Jun 2026 17:46:42 +0000 by rab

Spring Boot Email Integration with FreeMarker Templates

Integrating email capabilities into a Spring Boot application is straightforward with the spring-boot-starter-mail. Below is a conncise walk-through that covers dependency setup, provider credentials, template engines, and a reusable service layer. Maven Dependencies <parent> <groupId>org.springframework.boot</groupId> ...

Posted on Sat, 30 May 2026 00:39:53 +0000 by bryansu

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