MyBatis Interface Proxy and Advanced Features
Interface Proxy Implementation
Proxy Development Approach
MyBatis enables DAO layer creation through interface proxies. The framework dynamical generates proxy objects implementing mapper interfaces, eliminating manual DAO implementations.
Development Requirements:
XML mapper namespace must match the interface's fully qualified name
Method nam ...
Posted on Wed, 10 Jun 2026 17:15:56 +0000 by faraco
Understanding MyBatis Mapper Dynamic Proxy Implementation
SQL Execution Flow Recap
Standard MyBatis execution involves explicit DAO implementation classes handling SQL execution. The typical flow requires:
Defining a DAO interface
Implementing the interface with explicit SQL execution logic
Manually mapping method names to SQL statement IDs
This manual mapping creates unnecessary boilerplate code. T ...
Posted on Tue, 09 Jun 2026 17:27:05 +0000 by system
MyBatis SQL Execution Pipeline: From SqlSession to Executor with Caching and Interceptor Support
MyBatis operates as a semi-automated ORM framework, decoupling SQL from Java code via XML or annotations. Its SQL execution follows a delegation chain: SqlSession.getMapper() produces a proxy, MapperProxy intercepts calls, MapperMethod translates them, and Executor handles database interaction, caching, and plugins.
This article dissects the ca ...
Posted on Sun, 07 Jun 2026 17:12:20 +0000 by rmbarnes82
Spring Boot with MyBatis Transaction Management Setup
Maven Dependencies
Add the following dependencies to you're pom.xml:
<!-- MyBatis integration for Spring Boot -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<!-- MySQL ...
Posted on Sun, 07 Jun 2026 16:41:13 +0000 by frost
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