Master-Detail Table Management and Transaction Handling in Permission Systems
Resolving PageHelper Integration Issues
When integrating pagination using PageHelper in a Spring project, a compatibility issue may arise between different library versions. The error manifests as a NoSuchMethodError related to MyBatis reflection utilities.
The root cause typically involves version mismatches between PageHelper and MyBatis. To ...
Posted on Sun, 07 Jun 2026 16:04:56 +0000 by robot43298
Spring MVC XML Configuration for Apache Dubbo Service Provider and Consumer
Provider Side – Service & Data Layer
1.1 Mavan Dependencies
<dependencies>
<!-- ZooKeeper client -->
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zk.version}</version>
</dependency>
&l ...
Posted on Fri, 05 Jun 2026 18:19:08 +0000 by johnsmith153
Understanding MyBatis Caching: First-Level and Second-Level Cache Mechanisms
Introduction to Caching
Caching is a common feature in ORM frameworks, designed to enhance query performance and reduce database load by storing frequently accessed data in memory.
Cache Architecture
In the MyBatis source code, classes related to caching are located in the cache package. The core of this system is the Cache interface, with the ...
Posted on Thu, 04 Jun 2026 18:41:26 +0000 by jini01
Building and Deploying an SSM Backend Application with Maven and Tomcat
This article walks through creating a Java web backend using the SSM stack (Spring, Spring MVC, MyBatis) with Maven, packaging it as a WAR, and deploying it to Tomcat. Common configuration pitfalls are highlighted along the way.
1. Create a WAR‑based Maven project
Using your IDE, choose File → New → Maven Project → Create a simple project. Fill ...
Posted on Sun, 31 May 2026 15:59:27 +0000 by burn1337
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
Campus Second-Hand Trading Platform Architecture with WeChat Mini Program, Spring Boot, and Vue.js
System Overview
This project outlines the architecture and implementation of a second-hand trading platform designed specifically for campus environments. The system utilizes a WeChat Mini Program for the client interface, ensuring easy access for students without additional installations. The backend is powered by Spring Boot, providing a robu ...
Posted on Tue, 26 May 2026 22:09:20 +0000 by alwoodman
Mastering HttpServletRequest and HttpServletResponse in Java Servlets
Core Mechanisms of Servlet Request and Response Objects
In the Java Servlet ecosystem, the container bridges raw HTTP protocol traffic and business logic through two fundamental abstractions: HttpServletRequest and HttpServletResponse. The former encapsulates incoming client data, while the latter orchestrates the server's reply. Understanding ...
Posted on Sun, 24 May 2026 16:50:30 +0000 by telefiend
Implementing Atomic Dish Creation with Flavor Associations in Spring Boot
Creating a dish with associated flavor options requires coordinated writes across two database tables: dish and dish_flavor. To preserve data integrity, these operations must execute as a single atomic unit—either all succeed or none do. This is achieved using Spring’s declarative transaction management.
The service layer method responsible for ...
Posted on Wed, 20 May 2026 17:08:36 +0000 by suncore
MyBatis Caching: First-Level, Second-Level, and EHCache Integration
Understanding MyBatis Caching Mechanisms
MyBatis incorporates an internal caching system designed to enhance application performance by minimizing redundant database interactions. This caching operates at two distinct levels: a local, session-scoped cache and a global, application-scoped cache.
First-Level Cache: SqlSession Scope
The first-leve ...
Posted on Wed, 20 May 2026 16:32:32 +0000 by Jackount
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