macrozheng
Author

macrozheng

Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.

1.3k
Articles
0
Likes
4.9k
Views
0
Comments
Recent Articles

Latest from macrozheng

100 recent articles max
macrozheng
macrozheng
Jan 6, 2026 · Backend Development

Why PageHelper Can Break Your MyBatis Queries and How to Fix It

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.

JavaMyBatisPagination
0 likes · 13 min read
Why PageHelper Can Break Your MyBatis Queries and How to Fix It
macrozheng
macrozheng
Jan 5, 2026 · Backend Development

Why @NotEmpty Misses Blank Strings and How @NotBlank Fixes It

The article explains why using @NotEmpty fails to detect blank strings, demonstrates the issue with a simple demo, shows the correct use of StringUtils.isBlank, and clarifies the differences between @NotNull, @NotEmpty, and @NotBlank annotations in Java validation.

JavaSpringStringUtils
0 likes · 4 min read
Why @NotEmpty Misses Blank Strings and How @NotBlank Fixes It
macrozheng
macrozheng
Jan 4, 2026 · Fundamentals

Master KISS, DRY, and SOLID: Practical Tips and Real‑World Code Examples

This article explains the core software design principles KISS, DRY, and SOLID, shows why they matter for readability and maintainability, provides concrete Java examples and step‑by‑step guidelines, and lists actionable rules developers can follow to write cleaner, more reusable code.

DRYKISSSOLID
0 likes · 19 min read
Master KISS, DRY, and SOLID: Practical Tips and Real‑World Code Examples
macrozheng
macrozheng
Dec 30, 2025 · Backend Development

Mastering Druid Connection Pool in Spring Boot: Advanced Optimization Guide

This comprehensive guide walks through preparing the environment, fine‑tuning core Druid pool parameters, building a robust monitoring system, strengthening security, detecting connection leaks, applying advanced runtime tweaks, and avoiding common pitfalls to achieve high performance and stability in production Spring Boot applications.

Connection PoolDruidSpring Boot
0 likes · 12 min read
Mastering Druid Connection Pool in Spring Boot: Advanced Optimization Guide
macrozheng
macrozheng
Dec 29, 2025 · Fundamentals

Discover Fresh: A Fast, Lightweight Rust‑Based Terminal Text Editor

Fresh is a newly open‑source, Rust‑built terminal editor that offers a lightweight, fast, and feature‑rich experience with GUI‑like usability, multi‑platform support, zero‑delay performance, and extensibility through plugins, plus simple installation via Homebrew, Pacman, or npm.

CLIFreshInstallation
0 likes · 5 min read
Discover Fresh: A Fast, Lightweight Rust‑Based Terminal Text Editor
macrozheng
macrozheng
Dec 26, 2025 · Databases

NewSQL vs Middleware Sharding: Which Architecture Really Wins?

This article objectively compares middleware‑based sharding solutions with native NewSQL distributed databases, examining their architectural differences, transaction handling, high‑availability, scaling, SQL support, storage engines, and maturity to help engineers decide which approach best fits their workload.

CAP theoremNewSQLPaxos
0 likes · 20 min read
NewSQL vs Middleware Sharding: Which Architecture Really Wins?