Tagged articles
PageHelper
27 articles · Page 1 of 1
This article analyzes RuoYi 3.9.2's BaseController class, which encapsulates common controller operations like date binding, pagination, response handling, and user context retrieval using the template method pattern, enabling consistent CRUD controller implementations across the framework.
AjaxResultBaseControllerController Design
0 likes · 17 min read

The article recounts a developer’s painful experience with PageHelper, detailing how duplicate registrations, truncated result sets, and password‑update errors stem from the plugin’s ThreadLocal pagination handling, and explains the underlying code paths and safe usage practices.
BackendJavaMyBatis
0 likes · 13 min read

The article examines unexpected bugs caused by PageHelper’s hidden LIMIT clause injection in MyBatis projects, explains how ThreadLocal pagination parameters persist across requests, and provides practical guidelines and code examples to avoid and clean up these issues.
JavaMyBatisPageHelper
0 likes · 13 min read

This article compares five MyBatis pagination techniques—including raw LIMIT SQL, RowBounds, custom window‑function queries, interceptor‑based pagination, and the PageHelper plugin—explaining their principles, code examples, performance trade‑offs, and ideal usage scenarios.
BackendJavaMyBatis
0 likes · 6 min read

This article analyzes unexpected behaviors caused by PageHelper in a Java backend project, such as duplicate user registration, limited query results, and password‑reset errors, and explains how ThreadLocal pagination parameters, startPage(), and cleanup mechanisms lead to these problems while offering practical debugging tips.
BackendMyBatisPageHelper
0 likes · 11 min read

This article analyzes common anomalies caused by the PageHelper pagination plugin in a Java backend project—such as duplicate user registration, limited query results, and password‑reset errors—traces them to ThreadLocal misuse, explains the internal workflow of startPage, getLocalPage, and clearPage, and offers practical recommendations to avoid these pitfalls.
BackendJavaMyBatis
0 likes · 11 min read


JD TechMar 11, 2024 · Backend Development
This article explains how PageHelper's static ThreadLocal pagination parameters can be polluted by exceptions or thread reuse, leading to incorrect query results, and provides detailed analysis of the plugin's internals together with practical solutions such as invoking clearPage() via filters or aspects.
BackendJavaMyBatis
0 likes · 10 min read


JD TechMar 6, 2024 · Backend Development
This article analyzes why the total record count returned by PageHelper mismatches the actual number of rows, examines the underlying PageInfo and PageSerializable source code, and provides a concrete solution that avoids type conversion and directly constructs PageInfo from the mapper result to ensure accurate pagination.
BackendDebuggingJava
0 likes · 7 min read

This article explains pagination rationalization in SpringBoot using MyBatis PageHelper, illustrates common unreasonable pagination scenarios, demonstrates a bug caused by page deletion, and shows how a simple two‑line configuration or per‑query setting resolves the issue while detailing the underlying implementation.
BackendJavaMyBatis
0 likes · 8 min read

Unexpected duplicate registrations, truncated query results, and password‑reset SQL errors in a Java backend were traced to PageHelper’s ThreadLocal pagination state persisting across requests when startPage() is called without immediate query execution, so developers should ensure immediate execution or manually clear the ThreadLocal to prevent stale LIMIT clauses.
JavaMyBatisPageHelper
0 likes · 12 min read

The article analyzes unexpected behaviors caused by PageHelper in a Java backend project—such as duplicate registrations, limited query results, and password update errors—by dissecting its source code, ThreadLocal usage, and the importance of proper startPage() and clearPage() handling.
JavaMyBatisPageHelper
0 likes · 12 min read

This article recounts three production‑level pagination bugs encountered in a payment system, explains why they occurred—ranging from naive batch processing to MySQL's nondeterministic LIMIT behavior—and shows how proper pagination, ThreadLocal cleanup, and deterministic ordering resolve the issues.
BackendPageHelperPagination
0 likes · 16 min read

This article explains the core principles and multiple usage patterns of MyBatis PageHelper for pagination, demonstrates code examples, details its internal ThreadLocal and interceptor mechanisms, and highlights common pitfalls with safe versus unsafe practices to ensure reliable data retrieval.
JavaMyBatisPageHelper
0 likes · 9 min read

The article recounts three real‑world pagination bugs—batch‑processing loops, misuse of MyBatis PageHelper, and nondeterministic results from identical ORDER BY values—explaining why they occur, how they manifest in production, and concrete fixes to avoid data loss or endless loops.
MyBatisPageHelperPagination
0 likes · 15 min read

This article explains three MySQL pagination methods—simple LIMIT syntax, MyBatis RowBounds logical pagination, and the powerful MyBatis-PageHelper plugin—detailing their usage, configuration, code examples, and performance considerations to help Java developers efficiently handle large data sets.
JavaMyBatisPageHelper
0 likes · 8 min read

The article explains that MyBatis PageHelper performs an extra full‑table count query causing pagination to take over eight seconds on a 10,000‑row table, analyzes the root cause, and provides a concrete solution by customizing the count SQL with a _COUNT method and optimized mapper definitions.
JavaMyBatisPageHelper
0 likes · 6 min read

This article explains common anomalies caused by PageHelper in MyBatis projects, such as duplicate registrations and unexpected LIMIT clauses, analyzes the underlying ThreadLocal mechanism, and provides practical guidance on correctly using startPage() and clearPage() to prevent pagination bugs.
JavaMyBatisPageHelper
0 likes · 12 min read

This article examines unexpected bugs caused by PageHelper in a Java/MyBatis project—such as duplicate registrations, limited dropdown results, and password‑reset errors—traces them to ThreadLocal misuse, explains the library’s internal pagination flow, and offers practical fixes to avoid these pitfalls.
JavaMyBatisPageHelper
0 likes · 14 min read

This article explains how PageHelper integrates with MyBatis, analyzes common pagination bugs such as unexpected LIMIT clauses, duplicate registrations, and password‑reset errors, and demonstrates the internal ThreadLocal handling, startPage usage, and proper cleanup to avoid thread‑local pollution.
MyBatisPageHelperPagination
0 likes · 12 min read

This article explains three MySQL pagination techniques in Java—using LIMIT clauses, MyBatis RowBounds, and the MyBatis‑PageHelper plugin—providing syntax, XML and Java code examples, execution results, and practical recommendations for efficient data retrieval in backend development.
JavaMyBatisPageHelper
0 likes · 10 min read

This article introduces MyBatis-PageHelper, a universal pagination plugin that supports a wide range of databases, explains how to configure custom dialect aliases, shows Maven and Spring integration, details numerous plugin parameters, and provides multiple code examples for various usage patterns.
BackendJavaMyBatis
0 likes · 9 min read

This article explains why PageHelper pagination yields incorrect totals when list operations are performed before or after pagination, analyzes the underlying cause that startPage only affects subsequent SQL, and provides a step‑by‑step solution that processes the list after pagination and returns a correctly populated PageInfo object.
BackendJavaMyBatis
0 likes · 6 min read

This article analyzes the performance bottlenecks of PageHelper's pagination in MyBatis, demonstrates how large offsets degrade MySQL query speed, and presents a more efficient sub‑query join solution along with suggestions for refactoring the interceptor to improve backend pagination efficiency.
BackendJavaMyBatis
0 likes · 9 min read

This article provides a comprehensive guide on integrating PageHelper with SpringBoot and MyBatis, covering development preparation, dependency configuration, basic and advanced usage patterns, code examples, and detailed explanations of pagination mechanisms, including PageParam design and MyBatis interceptor internals.
BackendJavaMyBatis
0 likes · 19 min read

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

This article demonstrates how to combine Spring Boot with MyBatis, Druid connection pool, and PageHelper pagination plugin to configure multiple data sources, set up monitoring, and perform efficient paged queries, providing complete Maven dependencies, property settings, and Java configuration examples.
DruidJavaMulti-DataSource
0 likes · 18 min read

Step‑by‑step tutorial showing how to set up MySQL, configure a SpringBoot project, add dependencies, use PageHelper for pagination, generate MyBatis code with MyBatis Generator, and implement CRUD REST APIs for product brands in a Java backend.
BackendCRUDJava
0 likes · 12 min read
