Programmer XiaoFu
Author

Programmer XiaoFu

xiaofucode.com – a programmer learning guide driven by the pursuit of profit

111
Articles
0
Likes
419
Views
0
Comments
Recent Articles

Latest from Programmer XiaoFu

100 recent articles max
Programmer XiaoFu
Programmer XiaoFu
Jul 14, 2025 · Backend Development

Free Your Hands: 6 SpringBoot Techniques for Automatic Common Field Filling

The article analyzes the repetitive maintenance of common fields like createTime and updateUser in SpringBoot CRUD services, presents six production‑tested strategies—including MyBatis‑Plus meta‑object handling, AOP with custom annotations, multi‑data‑source adaptation, distributed ID generation, caching, batch optimization, and audit logging—detailing implementations, pitfalls, and best‑practice recommendations that can cut code by 90% and boost development efficiency.

AOPBackendMyBatis-Plus
0 likes · 9 min read
Free Your Hands: 6 SpringBoot Techniques for Automatic Common Field Filling
Programmer XiaoFu
Programmer XiaoFu
Jul 1, 2025 · Backend Development

Plug‑and‑Play Spring Boot: Building a Plugin Architecture

This article explains how to implement a plug‑and‑play development model in Spring Boot using Java SPI, custom configuration, and Spring Factories, providing step‑by‑step code examples, a multi‑module microservice case study, and practical guidance for creating extensible, decoupled applications.

Java SPIPlugin ArchitectureSpring Boot
0 likes · 22 min read
Plug‑and‑Play Spring Boot: Building a Plugin Architecture
Programmer XiaoFu
Programmer XiaoFu
Jun 18, 2025 · Big Data

How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources

This article walks through the challenges of synchronizing 50 million rows between disparate MySQL databases, explains why traditional mysqldump or file‑based methods fail, and then details how the open‑source DataX tool—its 3.0 framework, installation steps, job architecture, and JSON‑based configurations—enables fast full and incremental data transfers with concrete performance metrics.

Data SynchronizationDataXMySQL
0 likes · 14 min read
How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources
Programmer XiaoFu
Programmer XiaoFu
Jun 10, 2025 · Backend Development

Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition

This tutorial shows how to add OCR capabilities to a SpringBoot application using the Tess4j library, covering dependency setup, Tesseract engine initialization, RESTful endpoint implementation, training data choices, and practical tips for handling resources and deployment.

JavaOCRSpringBoot
0 likes · 7 min read
Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition
Programmer XiaoFu
Programmer XiaoFu
Jun 4, 2025 · Backend Development

Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity

This article walks through five concrete implementations for per‑minute API call counting—fixed window, lazy sliding window, Spring AOP, Redis time‑series, and Micrometer + Prometheus—detailing their design, code, trade‑offs, benchmark results, memory usage, and real‑world deployment tips.

MicrometerPrometheusRedis
0 likes · 25 min read
Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity
Programmer XiaoFu
Programmer XiaoFu
Apr 22, 2025 · Backend Development

Common Java OOM Types and How to Answer Interview Questions

The article lists the most frequent Java OutOfMemoryError variants, explains their root causes and typical scenarios, provides concrete code examples that trigger each error, and offers practical troubleshooting steps and JVM tuning recommendations for interview preparation.

HeapJVMJava
0 likes · 8 min read
Common Java OOM Types and How to Answer Interview Questions
Programmer XiaoFu
Programmer XiaoFu
Apr 15, 2025 · Backend Development

Sync vs Async: Achieving 10× Throughput in SpringBoot APIs

The article explains how SpringBoot’s asynchronous request handling—using Callable, WebAsyncTask, and DeferredResult with a custom thread pool—can boost API throughput up to ten times compared to synchronous processing, while detailing the internal flow, configuration steps, and scenarios where async is beneficial.

@AsyncSpringBootThreadPool
0 likes · 9 min read
Sync vs Async: Achieving 10× Throughput in SpringBoot APIs
Programmer XiaoFu
Programmer XiaoFu
Apr 1, 2025 · Fundamentals

How a 100k‑Bonus Colleague Writes Elegantly Clean Code

The article explains why clean, well‑structured code matters for team productivity, covering naming, class design, function design, SOLID principles, testing practices such as TDD and the FIRST rule, and shows how tools like SonarLint can help maintain code quality.

SOLIDTDDclean code
0 likes · 17 min read
How a 100k‑Bonus Colleague Writes Elegantly Clean Code