Java Companion
Author

Java Companion

A highly professional Java public account

88
Articles
0
Likes
8
Views
0
Comments
Recent Articles

Latest from Java Companion

88 recent articles
Java Companion
Java Companion
Nov 24, 2025 · Backend Development

Seamless OSS Switching with Adapter Pattern and Nacos Dynamic Configuration

This article demonstrates how to use the Adapter pattern together with Nacos dynamic configuration to abstract multiple OSS providers (Minio, Aliyun), configure Spring beans for hot‑refreshable storage selection, and integrate the solution into a microservice’s service, file, and controller layers.

Adapter PatternDynamic ConfigurationJava
0 likes · 12 min read
Seamless OSS Switching with Adapter Pattern and Nacos Dynamic Configuration
Java Companion
Java Companion
Nov 23, 2025 · Backend Development

A Minimalist Web‑Based API Debugger That Could Replace Postman

WebCurl is an open‑source, ultra‑lightweight web API testing tool that runs entirely in the browser without any installation, offering a minimalist design, zero third‑party dependencies, and a rich set of features such as HTTP CONNECT tunneling, custom headers, file upload/download, echo server, static file serving, and flexible command‑line options.

API testingGolangHTTP debugging
0 likes · 8 min read
A Minimalist Web‑Based API Debugger That Could Replace Postman
Java Companion
Java Companion
Nov 21, 2025 · Databases

How to Query Phone Number Suffix in Milliseconds on 50 Million Records

When faced with 50 million user rows, using LIKE '%1234' triggers a full table scan, but adding a suffix column, reversing the phone number, leveraging function indexes, or integrating Elasticsearch can reduce query time from minutes to a few milliseconds, each with its own trade‑offs.

ElasticsearchMySQLQuery Optimization
0 likes · 12 min read
How to Query Phone Number Suffix in Milliseconds on 50 Million Records
Java Companion
Java Companion
Nov 18, 2025 · Backend Development

Why SpringBoot Replaced spring.factories with a Faster, GraalVM‑Friendly Imports Mechanism

SpringBoot 3.0 drops the long‑standing spring.factories file in favor of per‑extension imports files, eliminating full‑classpath scans, improving startup speed, aligning with Java modules, and enabling seamless GraalVM native‑image support, while providing a clear migration path for existing projects.

GraalVMMigrationSpring Factories
0 likes · 13 min read
Why SpringBoot Replaced spring.factories with a Faster, GraalVM‑Friendly Imports Mechanism
Java Companion
Java Companion
Nov 16, 2025 · Backend Development

Stunning Architecture Designs Inside XXL-JOB Explained

The article dissects XXL-JOB's communication layer, showcasing Netty HTTP usage, a full asynchronous processing pipeline, dynamic proxy abstraction, request‑ID based thread wake‑up, and detailed Java code examples that illustrate how the scheduler and executor achieve high‑throughput remote job execution.

Dynamic ProxyJavaNetty
0 likes · 7 min read
Stunning Architecture Designs Inside XXL-JOB Explained
Java Companion
Java Companion
Nov 15, 2025 · Backend Development

Beyond mvn install: A Deep Dive into Maven Plugin Core Principles

This article explains that Maven is essentially a plugin framework, details how plugins like flatten-maven-plugin and exec-maven-plugin are configured and executed, introduces the MOJO concept, walks through creating a custom Maven plugin, and shows how to bind plugin goals to the build lifecycle.

MOJOMaven Pluginbuild lifecycle
0 likes · 13 min read
Beyond mvn install: A Deep Dive into Maven Plugin Core Principles