Tag

Mapper

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 25, 2023 · Backend Development

Understanding Spring’s FactoryBean and MyBatis Integration: From BeanFactory to MapperFactoryBean

This article explains how Spring’s FactoryBean mechanism enables seamless integration with MyBatis by detailing the roles of BeanFactory, SqlSessionFactoryBean, MapperScannerConfigurer, and MapperFactoryBean, and provides annotated code examples and XML configuration to illustrate the underlying process and its benefits for transaction management and thread safety.

FactoryBeanIntegrationJava
0 likes · 13 min read
Understanding Spring’s FactoryBean and MyBatis Integration: From BeanFactory to MapperFactoryBean
Architecture Digest
Architecture Digest
Nov 16, 2023 · Backend Development

Structuring Session‑Based Scene Data with MyBatis in Java

This article explains how to redesign a JSON payload that repeats a sessionId for each scene by moving the sessionId to the outer level and using MyBatis resultMap with a collection to map a Session object containing a list of Scene objects, including Java entity definitions, mapper XML, service, and controller code.

ControllerJavaMapper
0 likes · 5 min read
Structuring Session‑Based Scene Data with MyBatis in Java
Selected Java Interview Questions
Selected Java Interview Questions
Jul 14, 2023 · Backend Development

Using MapStruct for Efficient Entity Mapping in Java Projects

This article introduces the open‑source MapStruct library, shows how to configure Maven and Lombok dependencies, defines entity and DTO classes with Lombok annotations, creates a mapper interface, and demonstrates simple, list, multi‑source, and default‑value mappings with complete code examples.

DTOEntity MappingJava
0 likes · 11 min read
Using MapStruct for Efficient Entity Mapping in Java Projects
Top Architect
Top Architect
Nov 1, 2022 · Backend Development

Deep Dive into MyBatis SQL Execution Process and Custom TypeHandler

This article thoroughly explains how MyBatis binds mapper interfaces to XML files, details the step‑by‑step SQL execution flow—including mapper retrieval, statement preparation, parameter handling, and result mapping—and demonstrates how to create custom typeHandlers for both input parameters and result sets.

JavaMapperMyBatis
0 likes · 16 min read
Deep Dive into MyBatis SQL Execution Process and Custom TypeHandler
Java Architect Essentials
Java Architect Essentials
Sep 23, 2022 · Backend Development

Understanding the MyBatis‑Plus Mapper Method to SQL Mapping Process

This article explains how MyBatis‑Plus maps Mapper interface methods to executable SQL statements, detailing the auto‑configuration of SqlSessionFactory, XML parsing, mapper registration, SQL injection, and the dynamic proxy mechanism used at runtime.

JavaMapperMyBatis-Plus
0 likes · 15 min read
Understanding the MyBatis‑Plus Mapper Method to SQL Mapping Process
Top Architect
Top Architect
Jun 20, 2022 · Backend Development

Understanding How MyBatis‑Plus Maps Mapper Methods to SQL Statements and Executes Database Operations

This article provides a detailed walkthrough of MyBatis‑Plus internals, covering the auto‑configuration of SqlSessionFactory, parsing of mapper XML and annotations, registration of mapper interfaces via @MapperScan, creation of dynamic proxies, and the final assembly of executable SQL scripts for database interactions.

JavaMapperMyBatis-Plus
0 likes · 15 min read
Understanding How MyBatis‑Plus Maps Mapper Methods to SQL Statements and Executes Database Operations
Code Ape Tech Column
Code Ape Tech Column
Feb 22, 2022 · Backend Development

Using MapStruct for Java Bean Mapping: Concepts, Code Samples, and Configuration

This article introduces MapStruct, explains its purpose as a compile‑time Java bean mapper, walks through a complete example with Maven dependencies, entity and DTO classes, mapper interfaces, custom mappings, and configuration options, and compares its performance with other copying libraries.

Bean MappingJavaMapStruct
0 likes · 15 min read
Using MapStruct for Java Bean Mapping: Concepts, Code Samples, and Configuration
High Availability Architecture
High Availability Architecture
Sep 3, 2021 · Backend Development

MyBatis Complete Example and Internal Architecture Overview

This article provides a thorough introduction to MyBatis, including a complete beginner example with database schema, Maven configuration, XML and Java mapper files, and a demo program, followed by an in‑depth explanation of MyBatis’s lifecycle, core components such as SqlSession, Executor, StatementHandler, ParameterHandler, ResultSetHandler, and their interactions.

DatabaseExecutorJava
0 likes · 27 min read
MyBatis Complete Example and Internal Architecture Overview
vivo Internet Technology
vivo Internet Technology
Sep 2, 2021 · Backend Development

Complete MyBatis Example and Architecture Overview

The article presents a step‑by‑step MyBatis tutorial that creates a sample user table, adds Maven dependencies, configures MyBatis, defines mapper XML and Java interfaces, demonstrates a test program, and explains core components such as SqlSession, Executor, StatementHandler, ParameterHandler, and ResultSetHandler.

DatabaseExecutorJava
0 likes · 28 min read
Complete MyBatis Example and Architecture Overview
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 8, 2021 · Backend Development

Master Spring Boot & MyBatis Integration: Full Configuration and CRUD Guide

This article walks through setting up Spring Boot 2.3.11 with MyBatis 3.5.6, covering Maven dependencies, pagination and MyBatis configurations, mapper scanning, CRUD mapper definitions, dynamic SQL providers, and comprehensive unit tests, all illustrated with code snippets and diagrams.

JavaMapperMyBatis
0 likes · 8 min read
Master Spring Boot & MyBatis Integration: Full Configuration and CRUD Guide
vivo Internet Technology
vivo Internet Technology
May 19, 2021 · Backend Development

MyBatis-Plus SQL Auto-Injection Principle Analysis

MyBatis‑Plus enhances MyBatis by automatically injecting CRUD SQL via BaseMapper, using entity annotations and template methods to map classes to tables, eliminating repetitive manual SQL, supporting lambda queries, pagination, and performance tools, all with minimal intrusion and overhead.

Backend DevelopmentBaseMapperJava
0 likes · 10 min read
MyBatis-Plus SQL Auto-Injection Principle Analysis
Architecture Digest
Architecture Digest
Jan 16, 2021 · Backend Development

Understanding MyBatis SQL Execution Process and Custom TypeHandler Implementation

This article explains how MyBatis binds mapper interfaces to XML files, details the step‑by‑step SQL execution flow—including mapper retrieval, statement lookup, parameter handling, and result set mapping—and demonstrates how to create custom TypeHandler classes for both parameter setting and result extraction.

JavaMapperMyBatis
0 likes · 16 min read
Understanding MyBatis SQL Execution Process and Custom TypeHandler Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 24, 2020 · Backend Development

Resolving Duplicate Mapper Bean Warnings in Spring Boot 2.x with MyBatis‑Plus 3.4.1

This article explains why Spring Boot 2.x combined with MyBatis‑Plus 3.4.1 emits duplicate mapper bean warnings, analyzes the root cause in the MyBatis‑Spring integration, and provides a step‑by‑step fix by aligning dependency versions, especially upgrading the pagehelper‑spring‑boot‑starter to 1.3.0.

Duplicate BeanMapperMyBatis-Plus
0 likes · 11 min read
Resolving Duplicate Mapper Bean Warnings in Spring Boot 2.x with MyBatis‑Plus 3.4.1
Architecture Digest
Architecture Digest
Nov 6, 2020 · Backend Development

Custom JDK Dynamic Proxy for MyBatis Automatic Mapper Implementation

This article explains how MyBatis can instantiate a mapper interface without an implementation class by using a custom JDK dynamic proxy (referred to as "投鞭断流") that intercepts method calls, creates result objects, and demonstrates the full source code and execution output.

Dynamic ProxyJavaMapper
0 likes · 7 min read
Custom JDK Dynamic Proxy for MyBatis Automatic Mapper Implementation
Code Ape Tech Column
Code Ape Tech Column
Sep 13, 2020 · Backend Development

Why MyBatis Mapper Methods Cannot Be Overloaded and How to Locate Their Corresponding SQL in XML

This article explains, from source‑code analysis, why MyBatis mapper methods cannot be overloaded, shows the resulting BeanCreationException, walks through the MyBatis‑SpringBoot auto‑configuration that builds SqlSessionFactory, and demonstrates how to trace a mapper method to the exact SQL statement defined in the XML mapping file.

JavaMapperMyBatis
0 likes · 8 min read
Why MyBatis Mapper Methods Cannot Be Overloaded and How to Locate Their Corresponding SQL in XML
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 30, 2020 · Backend Development

Understanding MyBatis Dynamic Proxy: How Mapper Interfaces Are Implemented

This article explains the core principle of MyBatis by demonstrating how Mapper interfaces are turned into dynamic proxy objects using JDK proxy mechanisms, walks through manual simulation code, and clarifies each step of the proxy creation and method invocation process.

Dynamic ProxyJDK ProxyJava
0 likes · 7 min read
Understanding MyBatis Dynamic Proxy: How Mapper Interfaces Are Implemented
macrozheng
macrozheng
Jun 21, 2019 · Backend Development

Fix MyBatis Generator XML Append Issue: Overwrite Mapper Files Correctly

This guide explains why MyBatis Generator appends to existing mapper.xml files causing duplicate BaseResultMap errors, and shows how to upgrade to version 1.3.7 and add the UnmergeableXmlMappersPlugin to ensure mapper files are overwritten and the application runs smoothly.

GeneratorJavaMapper
0 likes · 4 min read
Fix MyBatis Generator XML Append Issue: Overwrite Mapper Files Correctly