Tagged articles
738 articles
Page 7 of 8
Code Ape Tech Column
Code Ape Tech Column
Sep 22, 2020 · Backend Development

Mastering MyBatis Parameter Passing: From Single Values to Collections

This guide explains every common way to pass parameters in MyBatis—including single values, multiple arguments via indexes, @Param, Map, POJO, List, and array—showing mapper signatures, XML mappings, and sample code to help interview preparation and real‑world development.

BackendMyBatisParameter Passing
0 likes · 6 min read
Mastering MyBatis Parameter Passing: From Single Values to Collections
IT Xianyu
IT Xianyu
Sep 19, 2020 · Backend Development

Using MyBatis Dynamic SQL Tags (if, choose, trim, foreach, bind) for Conditional Queries and Updates

This article explains how MyBatis dynamic SQL tags such as if, choose, trim, foreach, and bind can be used to build flexible SELECT, INSERT, UPDATE, and DELETE statements, showing code examples, test cases, and best‑practice tips for handling optional parameters and batch operations in Java backend development.

BackendDynamic SQLMyBatis
0 likes · 20 min read
Using MyBatis Dynamic SQL Tags (if, choose, trim, foreach, bind) for Conditional Queries and Updates
Code Ape Tech Column
Code Ape Tech Column
Sep 16, 2020 · Backend Development

Unlock MyBatis Plugin Mechanics: Build Custom Interceptors and Pagination

This article explains MyBatis's plugin architecture, shows how to create a custom interceptor to modify query parameters, demonstrates injection into Spring Boot, and analyzes the underlying proxy generation and execution flow, including a brief look at the popular PageHelper pagination plugin.

InterceptorMyBatisSpringBoot
0 likes · 12 min read
Unlock MyBatis Plugin Mechanics: Build Custom Interceptors and Pagination
Architecture Digest
Architecture Digest
Sep 15, 2020 · Databases

Optimizing Large‑Scale Excel Import in Java: From POI to EasyExcel, Caching, Batch Inserts and Parallel Processing

This article details how to dramatically speed up Excel‑driven fee‑record imports by replacing naïve POI row‑by‑row processing with EasyExcel, caching database look‑ups, using MySQL batch INSERTs, and finally applying parallel streams for multi‑threaded insertion, while also trimming excessive logging.

ExcelMyBatisParallelProcessing
0 likes · 12 min read
Optimizing Large‑Scale Excel Import in Java: From POI to EasyExcel, Caching, Batch Inserts and Parallel Processing
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.

BackendMyBatisSpringBoot
0 likes · 8 min read
Why MyBatis Mapper Methods Cannot Be Overloaded and How to Locate Their Corresponding SQL in XML
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2020 · Backend Development

Debugging MyBatis Source Code: A Step‑by‑Step Guide to Reading Core Components

This article explains how to set up the environment, identify key MyBatis components such as SqlSession, Executor, StatementHandler, ParameterHandler, TypeHandler, and ResultSetHandler, and strategically place breakpoints to effectively read and understand MyBatis 3.5 source code within a Spring Boot 2.3.3 application.

BackendMyBatisSpringBoot
0 likes · 8 min read
Debugging MyBatis Source Code: A Step‑by‑Step Guide to Reading Core Components
Java Captain
Java Captain
Sep 6, 2020 · Backend Development

Common Java Coding Pitfalls and Best‑Practice Alternatives

This article presents a collection of common Java coding pitfalls—such as using 'where 1=1' in MyBatis, inefficient Map iteration, improper collection checks, and suboptimal string handling—and provides concise, performance‑oriented best‑practice alternatives with code examples.

MyBatisbest practicesjava
0 likes · 17 min read
Common Java Coding Pitfalls and Best‑Practice Alternatives
Top Architect
Top Architect
Sep 5, 2020 · Backend Development

Spring Boot API Project Seed – A Backend Development Starter Kit with Code Samples

This article introduces a Spring Boot API project seed that combines MyBatis, a generic Mapper plugin, and PageHelper, offering ready‑made project structure, unified response handling, exception processing, code generation utilities, signature authentication, and integration guides to accelerate backend development.

APICode GeneratorMyBatis
0 likes · 10 min read
Spring Boot API Project Seed – A Backend Development Starter Kit with Code Samples
Code Ape Tech Column
Code Ape Tech Column
Sep 4, 2020 · Backend Development

Master MyBatis Dynamic SQL: Essential Tags and Real-World Examples

This article explains MyBatis dynamic SQL, describing each core XML tag (if, choose/when/otherwise, where, foreach, set, sql, include), showing practical code snippets, and offering advanced tips such as avoiding magic numbers and referencing SQL fragments across mapper files.

Dynamic SQLMyBatisbackend-development
0 likes · 14 min read
Master MyBatis Dynamic SQL: Essential Tags and Real-World Examples
Code Ape Tech Column
Code Ape Tech Column
Sep 3, 2020 · Backend Development

Master MyBatis Result Mapping: From Alias to Nested Associations

This article explains MyBatis result mapping techniques—including alias mapping, camel‑case automatic mapping, explicit resultMap definitions, and advanced one‑to‑one and one‑to‑many associations—providing code examples, configuration details, and performance considerations such as the N+1 query problem.

AssociationBackendMyBatis
0 likes · 16 min read
Master MyBatis Result Mapping: From Alias to Nested Associations
Code Ape Tech Column
Code Ape Tech Column
Sep 2, 2020 · Backend Development

Master MyBatis with Spring Boot: Setup, Configuration, and CRUD Guide

This tutorial walks through integrating MyBatis with Spring Boot, covering Maven dependencies, datasource configuration, mapper scanning, basic CRUD XML mappings, the differences between #{ } and ${ }, auto‑generated key handling, SQL fragments, and enabling camel‑case mapping for seamless Java‑to‑database interaction.

CRUDMyBatisORM
0 likes · 14 min read
Master MyBatis with Spring Boot: Setup, Configuration, and CRUD Guide
Top Architect
Top Architect
Aug 31, 2020 · Backend Development

MyBatis Dynamic SQL Tags: if, choose, trim, foreach, bind for Conditional Queries, Updates, Inserts, and Batch Operations

This tutorial explains how to use MyBatis dynamic SQL tags such as if, choose, trim, foreach, and bind to build flexible SELECT, UPDATE, INSERT, and batch statements, demonstrating data preparation, conditional query construction, selective updates, conditional inserts, and advanced tag usage with complete Java test examples.

Dynamic SQLMyBatisORM
0 likes · 20 min read
MyBatis Dynamic SQL Tags: if, choose, trim, foreach, bind for Conditional Queries, Updates, Inserts, and Batch Operations
The Dominant Programmer
The Dominant Programmer
Aug 31, 2020 · Backend Development

How to Count Conditional Records with MyBatis and MySQL

This article shows how to use MyBatis XML mappers to write MySQL queries that count employees meeting specific criteria, such as those in the current month or before today, while explaining required aliasing and date‑format handling.

Count QueryMyBatisjava
0 likes · 3 min read
How to Count Conditional Records with MyBatis and MySQL
Top Architect
Top Architect
Aug 25, 2020 · Backend Development

Performance Comparison of Hibernate and MyBatis for Insert and Query Operations

This article presents a systematic performance test of Hibernate and MyBatis covering bulk inserts, single‑table queries, and various association queries on MySQL, analyzes the impact of lazy versus eager loading, caching, and data volume, and provides practical recommendations for choosing the appropriate ORM framework.

HibernateMyBatisORM
0 likes · 16 min read
Performance Comparison of Hibernate and MyBatis for Insert and Query Operations
Code Ape Tech Column
Code Ape Tech Column
Aug 23, 2020 · Information Security

MyBatis SQL Injection Auditing: Common Pitfalls and Practical Analysis

This article explains how improper use of MyBatis in Java web applications can lead to SQL injection vulnerabilities, illustrates three typical injection scenarios with code examples, and provides a step‑by‑step practical workflow for discovering and confirming such flaws in a real CMS project.

Code AuditingMyBatisSQL injection
0 likes · 7 min read
MyBatis SQL Injection Auditing: Common Pitfalls and Practical Analysis
Programmer DD
Programmer DD
Aug 22, 2020 · Backend Development

Mastering MyBatis sqlFragment: Reuse SQL Snippets Efficiently

This article explains MyBatis sqlFragment, its purpose for reusable SQL snippets, demonstrates how to define and include fragments in select/insert/update/delete statements, walks through the parsing process with code examples, and visualizes the transformation steps to build complete SQL queries.

MyBatisSQL reuseXML parsing
0 likes · 7 min read
Mastering MyBatis sqlFragment: Reuse SQL Snippets Efficiently
Programmer DD
Programmer DD
Aug 21, 2020 · Backend Development

Mastering SpringBoot: Multi-DataSource, Druid Pool, and PageHelper Pagination

This tutorial walks through integrating SpringBoot with MyBatis, configuring the Druid connection pool, setting up multiple data sources, and enabling pagination using PageHelper, complete with Maven dependencies, property files, Java configuration classes, and sample API requests and responses.

DruidMulti-DataSourceMyBatis
0 likes · 18 min read
Mastering SpringBoot: Multi-DataSource, Druid Pool, and PageHelper Pagination
Code Ape Tech Column
Code Ape Tech Column
Aug 20, 2020 · Information Security

How to Spot MyBatis SQL Injection Vulnerabilities: A Practical Guide

This article walks through the typical ways MyBatis can introduce SQL injection—through misuse of # and $ in LIKE, IN, and ORDER BY clauses—provides correct code examples, and demonstrates a step‑by‑step reverse‑engineering workflow on an open‑source CMS to locate and confirm the vulnerability.

Code AuditingMyBatisSQL injection
0 likes · 7 min read
How to Spot MyBatis SQL Injection Vulnerabilities: A Practical Guide
Java Backend Technology
Java Backend Technology
Aug 20, 2020 · Backend Development

Unlock MyBatis Mapper Magic with a Custom JDK Dynamic Proxy

This article explains how to create a custom JDK dynamic proxy that automatically maps interface methods to objects, demonstrates the underlying MyBatis mapper implementation, and clarifies why method overloading is prohibited in mapper interfaces.

Dynamic ProxyMyBatisjava
0 likes · 8 min read
Unlock MyBatis Mapper Magic with a Custom JDK Dynamic Proxy
Architecture Digest
Architecture Digest
Aug 16, 2020 · Information Security

MyBatis SQL Injection Auditing: Common Pitfalls and Practical Analysis

This article explains how improper use of MyBatis in Java web applications can lead to SQL injection vulnerabilities, illustrates three typical injection patterns with code examples, and provides a step‑by‑step practical methodology for locating and confirming such flaws in an open‑source CMS project.

Code AuditingMyBatisSQL injection
0 likes · 6 min read
MyBatis SQL Injection Auditing: Common Pitfalls and Practical Analysis
ITPUB
ITPUB
Aug 12, 2020 · Backend Development

Essential IntelliJ IDEA Plugins Every Java Developer Should Install

This guide explains how to install and use a curated list of IntelliJ IDEA plugins—including Lombok, RestfulTool, MyBatis helpers, and productivity enhancers—detailing both online and offline installation methods, configuration tips, and practical examples for Java development.

IntelliJ IDEALombokMyBatis
0 likes · 11 min read
Essential IntelliJ IDEA Plugins Every Java Developer Should Install
Top Architect
Top Architect
Aug 12, 2020 · Information Security

Practical Guide to Auditing MyBatis SQL Injection Vulnerabilities

This article explains common MyBatis SQL injection patterns such as fuzzy queries, improper use of the $ placeholder in IN clauses and ORDER BY statements, and provides a step‑by‑step methodology for locating, analyzing, and confirming these vulnerabilities in Java web applications.

MyBatisSQL injectionSecurity Auditing
0 likes · 7 min read
Practical Guide to Auditing MyBatis SQL Injection Vulnerabilities
Programmer DD
Programmer DD
Jul 28, 2020 · Backend Development

Master MyBatis Dynamic SQL: IF, CHOOSE, FOREACH, and BIND Explained

This article provides a comprehensive guide to MyBatis dynamic SQL, covering essential tags such as if, choose, trim, foreach, and bind, with practical Maven project setup, full SQL examples, and JUnit tests that demonstrate conditional queries, updates, inserts, and batch operations.

BackendDynamic SQLMyBatis
0 likes · 20 min read
Master MyBatis Dynamic SQL: IF, CHOOSE, FOREACH, and BIND Explained
Programmer DD
Programmer DD
Jul 27, 2020 · Backend Development

Why MyBatis Outperforms Hibernate for Modern Java Back‑End Projects

The article examines a Spring‑related Twitter poll, Google Trends, and Stack Overflow statistics to compare MyBatis, Hibernate, and JPA, then argues that MyBatis’ simplicity and flexibility make it better suited for today’s fast‑paced backend development.

HibernateMyBatisORM
0 likes · 5 min read
Why MyBatis Outperforms Hibernate for Modern Java Back‑End Projects
Top Architect
Top Architect
Jul 10, 2020 · Backend Development

How to Build a Multi‑module Spring Boot + MyBatis Project in IntelliJ IDEA

This tutorial walks through setting up a Spring Boot and MyBatis multi‑module backend project in IntelliJ IDEA, covering environment preparation, directory layout, parent and sub‑module creation, code examples, dependency configuration, MyBatis integration, and final verification of the running service.

Multi‑moduleMyBatisbackend-development
0 likes · 10 min read
How to Build a Multi‑module Spring Boot + MyBatis Project in IntelliJ IDEA
Selected Java Interview Questions
Selected Java Interview Questions
Jul 9, 2020 · Databases

Implementing MySQL Read/Write Splitting with Spring Boot, MyBatis, and MyCat Middleware

This tutorial explains two approaches to achieve MySQL read/write splitting—first by manually implementing routing logic in Spring Boot with MyBatis interceptors and dynamic data sources, and second by configuring the MyCat middleware for automatic load balancing, fault‑tolerance, and multi‑node support, complete with code samples and configuration files.

MyBatisMycatReadWriteSplitting
0 likes · 26 min read
Implementing MySQL Read/Write Splitting with Spring Boot, MyBatis, and MyCat Middleware
Programmer DD
Programmer DD
Jun 26, 2020 · Backend Development

How to Configure Multiple Data Sources with MyBatis in Spring Boot

Learn step-by-step how to set up and test multiple data sources in a Spring Boot application using MyBatis, covering property configuration, DataSource beans, mapper scanning, entity definitions, and verification through unit tests with complete code examples and key configuration notes.

Database ConfigurationMultiple Data SourcesMyBatis
0 likes · 11 min read
How to Configure Multiple Data Sources with MyBatis in Spring Boot
FunTester
FunTester
Jun 23, 2020 · Backend Development

Implementing Test Case Detail Retrieval with MyBatis resultMap and TypeHandler

Despite pandemic‑induced remote work challenges, the author details progress on implementing test case management, focusing on MyBatis resultMap usage, bean and database design complexities, and provides the full XML mapping and SQL query for retrieving detailed test case information.

MyBatisjavaresultMap
0 likes · 6 min read
Implementing Test Case Detail Retrieval with MyBatis resultMap and TypeHandler
FunTester
FunTester
Jun 20, 2020 · Backend Development

Mastering MySQL CASE WHEN and MyBatis Dynamic Queries for Test Case Search

This article walks through building complex test‑case search queries using MySQL CASE WHEN, FIND_IN_SET, and MyBatis dynamic SQL, demonstrates converting asynchronous data fetches to synchronous calls with CountDownLatch in Spring, and provides complete Java bean and configuration examples.

AsyncBackendMyBatis
0 likes · 9 min read
Mastering MySQL CASE WHEN and MyBatis Dynamic Queries for Test Case Search
Meituan Technology Team
Meituan Technology Team
Jun 18, 2020 · Backend Development

Root Cause Analysis of MyBatis Version Upgrade Causing ParameterType Mismatch and Type Casting Errors

An upgrade of MyBatis from 3.2.3 to 3.4.6 caused parameterType mismatches in XML mappings, turning previously ignored type declarations into enforced ones, which led to ClassCastException errors for LocalDateTime and other types, prompting a root‑cause analysis and recommendations for careful version testing and configuration alignment.

MyBatisORMVersion Upgrade
0 likes · 18 min read
Root Cause Analysis of MyBatis Version Upgrade Causing ParameterType Mismatch and Type Casting Errors
FunTester
FunTester
Jun 18, 2020 · Backend Development

How to Read a Map from MySQL with MyBatis and Resolve ClassCastException

This article walks through extracting service‑host mappings from MySQL using MyBatis, handling a Long‑to‑String conversion error, and demonstrates an insert‑select SQL pattern that requires column aliases to avoid duplicate‑column errors, complete with XML and Java code examples.

BackendData MappingMyBatis
0 likes · 6 min read
How to Read a Map from MySQL with MyBatis and Resolve ClassCastException
FunTester
FunTester
Jun 16, 2020 · Backend Development

Managing Test User Module Data with MyBatis XML and Java Bean

The article details how to handle test user module data by converting ID fields to strings, validating optional parameters, and configuring complex MyBatis XML mappings alongside a Java bean, illustrating the full workflow from requirements to implementation and testing.

Data AccessMyBatisjava
0 likes · 6 min read
Managing Test User Module Data with MyBatis XML and Java Bean
Programmer DD
Programmer DD
Jun 12, 2020 · Backend Development

Master MyBatis resultMap: From Simple Queries to Complex Mappings

This article explains the powerful MyBatis resultMap element, covering basic getter/setter injection, constructor injection, inheritance, one-to-one and one-to-many associations, and discriminators, while providing complete XML examples and Java entity code to help developers map complex relational data efficiently.

BackendMyBatisORM
0 likes · 13 min read
Master MyBatis resultMap: From Simple Queries to Complex Mappings
Architecture Digest
Architecture Digest
May 13, 2020 · Backend Development

Understanding MyBatis Plugins: Use Cases, Mechanism, and Development Guide

This article explains the typical scenarios, internal implementation details, design patterns, and step‑by‑step development of MyBatis plugins, helping backend developers grasp how to intercept Executor, ParameterHandler, ResultSetHandler, and StatementHandler methods for pagination, auditing, performance monitoring, and other custom logic.

MyBatisaopjava
0 likes · 8 min read
Understanding MyBatis Plugins: Use Cases, Mechanism, and Development Guide
Architect's Tech Stack
Architect's Tech Stack
May 10, 2020 · Backend Development

Generating Spring Boot CRUD Code with EasyCode Plugin in IntelliJ IDEA

This tutorial walks through installing the EasyCode and Lombok plugins, creating a MySQL table, configuring IDEA database connections, generating entity, DAO, service, controller, and mapper code for a Spring Boot project, and setting up the required Maven dependencies and application.yml configuration.

EasyCodeIntelliJ IDEAMyBatis
0 likes · 6 min read
Generating Spring Boot CRUD Code with EasyCode Plugin in IntelliJ IDEA
Java Backend Technology
Java Backend Technology
Mar 21, 2020 · Backend Development

Top Spring Boot Interview Questions & Answers: Master Backend Development

This comprehensive guide covers essential Spring Boot concepts—including its definition, advantages, auto‑configuration, DevTools hot‑reloading, starter projects, embedded servers, Actuator monitoring, YAML configuration, MyBatis integration, WAR packaging, and common pitfalls—providing concise answers to 40+ interview‑style questions for backend developers.

ActuatorDevToolsMicroservices
0 likes · 22 min read
Top Spring Boot Interview Questions & Answers: Master Backend Development
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 19, 2020 · Backend Development

Introduction to MyBatis: Architecture, Core Components, and Execution Process

This article introduces MyBatis, a Java persistence framework that separates SQL from code, outlines its key features, explains its layered architecture, and details the core components such as SqlSessionFactory, SqlSession, MapperProxy, Executor, StatementHandler, ParameterHandler, and ResultSetHandler with code examples.

BackendMyBatisORM
0 likes · 25 min read
Introduction to MyBatis: Architecture, Core Components, and Execution Process
Java Captain
Java Captain
Mar 17, 2020 · Backend Development

Spring Boot API Project Seed: Best Practices, Code Templates, and Utilities

This article introduces a Spring Boot API project seed that combines MyBatis, a generic Mapper plugin, and PageHelper, offering a ready‑to‑use project structure, unified response handling, exception processing, code generation tools, and simple signature authentication to accelerate backend development.

APIMyBatisSpring Boot
0 likes · 8 min read
Spring Boot API Project Seed: Best Practices, Code Templates, and Utilities
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 16, 2020 · Backend Development

Boost Your Java Development Speed with 10 Must-Have IntelliJ IDEA Plugins

This guide introduces ten essential IntelliJ IDEA plugins—including JRebel, Codota, Lombok, and MyBatis—that streamline Java development, enhance code quality, and accelerate productivity through features like hot deployment, AI code completion, automatic boilerplate generation, and convenient project navigation.

IntelliJ IDEAJava developmentLombok
0 likes · 6 min read
Boost Your Java Development Speed with 10 Must-Have IntelliJ IDEA Plugins
Programmer DD
Programmer DD
Mar 2, 2020 · Backend Development

How to Integrate MyBatis with Spring Boot for CRUD Operations

This guide walks through integrating MyBatis into a Spring Boot project, covering dependency setup, MySQL configuration, entity and mapper creation, CRUD annotations, and unit testing to verify database operations, including transaction management and result mapping.

CRUDMyBatisSpring Boot
0 likes · 10 min read
How to Integrate MyBatis with Spring Boot for CRUD Operations
Java Captain
Java Captain
Feb 29, 2020 · Backend Development

Using Apache POI for Excel Import and Export in Java

This article demonstrates how to use Apache POI in a Maven‑based Java project to read and write both XLS and XLSX Excel files, covering library setup, core APIs, data type handling, and practical import/export implementations with Spring MVC and MyBatis.

Apache POIExcelImportExport
0 likes · 19 min read
Using Apache POI for Excel Import and Export in Java
Architecture Digest
Architecture Digest
Feb 29, 2020 · Backend Development

Implementing Read‑Write Splitting in Spring Boot with AbstractRoutingDataSource

This article demonstrates how to achieve read‑write splitting in a Spring Boot application by configuring multiple data sources, creating a custom AbstractRoutingDataSource, using AOP to switch between master and slave databases, and integrating the routing data source with MyBatis for transparent database operations.

DataSource RoutingMyBatisSpring Boot
0 likes · 15 min read
Implementing Read‑Write Splitting in Spring Boot with AbstractRoutingDataSource
Java Backend Technology
Java Backend Technology
Feb 23, 2020 · Backend Development

How to Auto-Generate Spring Boot CRUD Code with EasyCode in IDEA

This guide walks you through installing the EasyCode plugin in IntelliJ IDEA, setting up a MySQL database, configuring Spring Boot dependencies, and using EasyCode to automatically generate entity, controller, service, DAO, and mapper classes, complete with Maven and application.yml settings.

EasyCodeIntelliJ IDEALombok
0 likes · 7 min read
How to Auto-Generate Spring Boot CRUD Code with EasyCode in IDEA
Liangxu Linux
Liangxu Linux
Feb 22, 2020 · Backend Development

Generate Spring Boot CRUD Code Instantly with EasyCode Plugin

This guide walks through installing the EasyCode IntelliJ plugin, setting up a MySQL database, configuring a Spring Boot project, adding necessary Maven dependencies and application.yml settings, and using EasyCode to automatically generate CRUD code for the defined tables.

IntelliJ PluginLombokMyBatis
0 likes · 6 min read
Generate Spring Boot CRUD Code Instantly with EasyCode Plugin
Programmer DD
Programmer DD
Feb 11, 2020 · Backend Development

Preventing SQL Injection in Java: JDBC, MyBatis, JPA & Hibernate Best Practices

This article explains Java persistence technologies—including JDBC, MyBatis, JPA, and Hibernate—highlights common patterns that cause SQL injection, and provides concrete techniques such as parameterized PreparedStatement, MyBatis #{ } binding, dynamic SQL whitelisting, and proper JPA/Hibernate query parameter usage to securely handle user input.

HibernateJDBCMyBatis
0 likes · 10 min read
Preventing SQL Injection in Java: JDBC, MyBatis, JPA & Hibernate Best Practices
Java Captain
Java Captain
Jan 31, 2020 · Backend Development

Comprehensive Guide to Developing a Traditional Java Web Project

This article outlines the essential steps for creating a traditional Java web application, covering environment preparation, Maven skeleton creation, required dependencies for logging, databases, persistence, Spring integration, DAO and service layers, unit testing, and RESTful controller configuration.

JUnitMyBatisWeb Development
0 likes · 10 min read
Comprehensive Guide to Developing a Traditional Java Web Project
Java Captain
Java Captain
Jan 17, 2020 · Backend Development

Integrating Alipay Payment into an SSM (Spring + Spring MVC + MyBatis) Application

This tutorial provides a step‑by‑step guide on configuring the Alipay sandbox, generating keys, setting up notification URLs, creating the required database tables, and integrating the full payment flow—including DAO, service, controller, and JSP code—into a Java SSM backend project.

AlipayMyBatisPayment Integration
0 likes · 11 min read
Integrating Alipay Payment into an SSM (Spring + Spring MVC + MyBatis) Application
Java Backend Technology
Java Backend Technology
Jan 13, 2020 · Backend Development

How MyBatis Leverages 9 Classic Design Patterns to Simplify Java Persistence

This article explores the nine classic design patterns—Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—used throughout MyBatis, explaining each pattern's role, core classes, and how they streamline configuration, SQL execution, caching, and logging in Java backend development.

MyBatisjava
0 likes · 16 min read
How MyBatis Leverages 9 Classic Design Patterns to Simplify Java Persistence
Programmer DD
Programmer DD
Jan 13, 2020 · Databases

Unveiling MyBatis Transaction Mechanics: From JDBC to Real‑World Scenarios

This article demystifies MyBatis transaction handling by clarifying the true JDBC transaction methods, explaining Spring's propagation concepts, detailing the MyBatis Transaction and TransactionFactory interfaces, showcasing code examples, and exploring special cases such as auto‑commit nuances and connection‑pool interactions.

ConnectionPoolJDBCMyBatis
0 likes · 10 min read
Unveiling MyBatis Transaction Mechanics: From JDBC to Real‑World Scenarios
Architecture Digest
Architecture Digest
Jan 11, 2020 · Backend Development

Design Patterns Used in MyBatis Source Code

This article examines how MyBatis implements numerous classic design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—through its source code, explaining each pattern's role, related classes, and code examples to deepen developers' understanding of backend architecture.

AdapterBuilderDecorator
0 likes · 17 min read
Design Patterns Used in MyBatis Source Code
Programmer DD
Programmer DD
Jan 10, 2020 · Backend Development

How MyBatis Leverages 9 Classic Design Patterns

This article explores how MyBatis implements nine fundamental design patterns—Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by examining its source code, illustrating each pattern with explanations, diagrams, and code snippets to deepen developers' understanding of practical pattern usage.

Design PatternsMyBatisbackend-development
0 likes · 23 min read
How MyBatis Leverages 9 Classic Design Patterns
Selected Java Interview Questions
Selected Java Interview Questions
Jan 3, 2020 · Backend Development

Comprehensive MyBatis Interview Q&A: Placeholders, XML Tags, DAO Mechanics, Pagination, Plugins, Dynamic SQL, Result Mapping, Associations, Lazy Loading, Executors and More

This article provides detailed answers to 18 common MyBatis interview questions, covering the differences between #{ } and ${ }, XML mapping tags, DAO interface behavior, pagination techniques, plugin development, batch operations, dynamic SQL, result mapping, association handling, lazy loading, executor types, enum mapping, and the internal configuration structure.

MyBatisORMPersistence
0 likes · 16 min read
Comprehensive MyBatis Interview Q&A: Placeholders, XML Tags, DAO Mechanics, Pagination, Plugins, Dynamic SQL, Result Mapping, Associations, Lazy Loading, Executors and More
Architect's Tech Stack
Architect's Tech Stack
Dec 15, 2019 · Backend Development

Understanding Spring Boot, Spring MVC, and Spring: Differences and Auto‑Configuration Mechanism

This article explains the distinctions between Spring, Spring MVC, and Spring Boot, illustrates how Spring Boot achieves automatic configuration through annotations like @SpringBootApplication, @EnableAutoConfiguration, and @ComponentScan, and provides detailed code examples of the underlying mechanisms and related configuration classes.

Java AnnotationsMyBatisSpring Boot
0 likes · 11 min read
Understanding Spring Boot, Spring MVC, and Spring: Differences and Auto‑Configuration Mechanism
Java Backend Technology
Java Backend Technology
Dec 2, 2019 · Backend Development

Master MyBatis: Common Pitfalls, Tips, and Best Practices

This article compiles a comprehensive guide to MyBatis, covering typical mistakes such as misuse of # vs $, handling of dates and null values, multi‑parameter strategies, XML escaping, dynamic SQL pitfalls, and a balanced list of its advantages and disadvantages for Java developers.

MyBatisORMTips
0 likes · 22 min read
Master MyBatis: Common Pitfalls, Tips, and Best Practices
Java Captain
Java Captain
Nov 17, 2019 · Backend Development

Spring Boot Integration Guide: MyBatis, Swagger2, Multi‑Environment Configuration and Advanced Logging

This article explains why to use Spring Boot, how to set up the development environment, and provides step‑by‑step instructions for integrating MyBatis, Swagger2, multi‑environment profiles, and advanced Logback logging, including configuration files, Maven dependencies, code snippets, and testing procedures.

Multi-EnvironmentMyBatisSpring Boot
0 likes · 22 min read
Spring Boot Integration Guide: MyBatis, Swagger2, Multi‑Environment Configuration and Advanced Logging
Java Backend Technology
Java Backend Technology
Oct 26, 2019 · Backend Development

15 Essential Java Backend Coding Practices to Boost Performance

This article presents fifteen practical Java backend coding guidelines—including avoiding "where 1=1" in MyBatis, iterating Map entrySet, using Collection.isEmpty, pre‑sizing collections, employing StringBuilder, preferring Set for contains checks, initializing static members correctly, removing dead code, shielding utility constructors, eliminating redundant catches, using String.valueOf, avoiding BigDecimal(double), returning empty collections, calling equals on constants, securing enum fields, and escaping regex in split—each illustrated with bad and good code examples to improve readability, safety, and efficiency.

BackendCollectionsMyBatis
0 likes · 16 min read
15 Essential Java Backend Coding Practices to Boost Performance
21CTO
21CTO
Oct 21, 2019 · Backend Development

Boost Java Performance: 16 Proven Coding Practices You Should Adopt

This article presents sixteen practical Java coding guidelines—ranging from avoiding "where 1=1" in MyBatis to using static blocks for collection initialization, preferring Set over List for contains checks, and returning empty collections instead of null—to help developers write more efficient, readable, and safe backend code.

Code OptimizationCollectionsMyBatis
0 likes · 17 min read
Boost Java Performance: 16 Proven Coding Practices You Should Adopt
Architect's Tech Stack
Architect's Tech Stack
Sep 20, 2019 · Backend Development

Design Patterns in MyBatis: Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, Iterator

This article examines how MyBatis applies classic design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by analysing source code snippets and explaining each pattern's role in the framework's configuration, execution, caching, and dynamic SQL generation.

Design PatternsMyBatisSoftware Architecture
0 likes · 18 min read
Design Patterns in MyBatis: Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, Iterator
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 18, 2019 · Backend Development

Boost Your Coding Speed: 6 Proven Code‑Generation Techniques

This article explores six practical ways to accelerate Java development—from hand‑writing and copy‑pasting to Excel formulas, code‑generation tools, and custom generators—detailing their workflows, sample code, advantages, drawbacks, and how to choose the right method for any project.

MyBatiscode-generationproductivity
0 likes · 15 min read
Boost Your Coding Speed: 6 Proven Code‑Generation Techniques
Programmer DD
Programmer DD
Aug 8, 2019 · Databases

How to Quickly Set Up H2 Embedded Database with SpringBoot and MyBatis

This article explains the lightweight features of the pure‑Java H2 embedded database, demonstrates its various modes—including in‑memory, file‑based, and standalone server—and provides step‑by‑step integration with SpringBoot and MyBatis for rapid development and testing.

Embedded DatabaseMyBatisSpringBoot
0 likes · 9 min read
How to Quickly Set Up H2 Embedded Database with SpringBoot and MyBatis
Programmer DD
Programmer DD
Aug 4, 2019 · Backend Development

Master MyBatis TypeHandler: Elegant Enum Mapping and Custom Handlers

Learn how to replace fragile numeric status codes with clean enum handling in Java using MyBatis TypeHandler, explore built‑in handlers like EnumOrdinalTypeHandler and EnumTypeHandler, and create custom handlers for seamless database‑Java type conversion, complete with configuration tips and practical examples.

MyBatisORMTypeHandler
0 likes · 9 min read
Master MyBatis TypeHandler: Elegant Enum Mapping and Custom Handlers
FunTester
FunTester
Jul 27, 2019 · Backend Development

How to Build an Asynchronous MySQL Storage Service with Spring Boot & MyBatis

This article walks through rebuilding an asynchronous MySQL logging service using Spring Boot and MyBatis, providing full source code for the application entry point, DAO, service, controller, MyBatis mapper, and configuration, and shows the resulting database entries.

Async StorageMyBatisSpring Boot
0 likes · 5 min read
How to Build an Asynchronous MySQL Storage Service with Spring Boot & MyBatis
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.

BackendMyBatisXML
0 likes · 4 min read
Fix MyBatis Generator XML Append Issue: Overwrite Mapper Files Correctly
Programmer DD
Programmer DD
Jun 9, 2019 · Backend Development

Inside MyBatis: How SqlSessionFactory, Executor, and Mappers Work Together

This article walks through MyBatis' internal workflow—from parsing the global XML configuration and building the SqlSessionFactory, to creating a SqlSession, executing a query via the Executor, handling caching, and finally mapping results—illustrated with key code snippets and a diagram.

ExecutorMyBatisORM
0 likes · 16 min read
Inside MyBatis: How SqlSessionFactory, Executor, and Mappers Work Together
Programmer DD
Programmer DD
May 29, 2019 · Backend Development

MyBatis Pitfalls and Best Practices: A Guide for Java Developers

Discover the most common MyBatis pitfalls—from # vs $ usage, handling nulls, resultMap quirks, and dynamic SQL issues—to master safe query practices, optimize performance, and avoid runtime errors, while comparing its strengths and weaknesses against Hibernate for effective Java backend development.

MyBatisORMbackend-development
0 likes · 23 min read
MyBatis Pitfalls and Best Practices: A Guide for Java Developers
Programmer DD
Programmer DD
May 15, 2019 · Backend Development

Why MyBatis Runs Extra SQLs and How to Tune Its Cache

This article explains why MyBatis may execute unexpected additional SQL statements, reveals the default caching behavior, shows the required XML configuration and Serializable implementation, and offers practical steps to prevent cache clearing on inserts for more efficient backend data access.

CacheMyBatisORM
0 likes · 3 min read
Why MyBatis Runs Extra SQLs and How to Tune Its Cache
Java Captain
Java Captain
May 6, 2019 · Backend Development

Introduction to Spring Boot with Code Examples

This article provides a comprehensive tutorial on Spring Boot, covering its purpose, key advantages, project setup with Maven, essential configuration files, integration of JdbcTemplate, JPA, MyBatis, JSP, AOP, and task scheduling, all illustrated with complete Java code snippets.

MyBatisSpring Bootaop
0 likes · 12 min read
Introduction to Spring Boot with Code Examples
macrozheng
macrozheng
May 4, 2019 · Backend Development

Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis

The Mall project is a comprehensive e‑commerce solution featuring a front‑end storefront and back‑office management, implemented with Spring Boot, MyBatis, and a suite of modern technologies such as Redis, Elasticsearch, RabbitMQ, Docker, and more, offering modules for products, orders, marketing, and analytics.

DockerElasticsearchMyBatis
0 likes · 4 min read
Explore the Full‑Featured Mall E‑Commerce System Built with Spring Boot & MyBatis
Senior Brother's Insights
Senior Brother's Insights
Apr 15, 2019 · Backend Development

How MyBatis Implements 9 Classic Design Patterns – A Deep Dive

This article explores how MyBatis applies nine fundamental design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—by examining its source code, illustrating each pattern with explanations and concrete code snippets to deepen developers' understanding of real‑world pattern usage.

BuilderDesign PatternsFactory
0 likes · 19 min read
How MyBatis Implements 9 Classic Design Patterns – A Deep Dive