java1234
Author

java1234

Former senior programmer at a Fortune Global 500 company, dedicated to sharing Java expertise. Visit Feng's site: Java Knowledge Sharing, www.java1234.com

65
Articles
0
Likes
1
Views
0
Comments
Recent Articles

Latest from java1234

65 recent articles
java1234
java1234
Feb 24, 2026 · Backend Development

How to Handle Transactions in RabbitMQ with Java

This article explains RabbitMQ's transaction mechanism, walks through the four-step process of opening, executing, committing, or rolling back a transaction, provides a complete Java example with Maven setup, and discusses performance impacts and when to prefer acknowledgments over transactions.

AcknowledgmentJavaMessaging
0 likes · 6 min read
How to Handle Transactions in RabbitMQ with Java
java1234
java1234
Feb 18, 2026 · Fundamentals

A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls

This article explains why raw collections are unsafe, how Java generics enforce compile‑time type safety, reduce casting, improve code readability, and boost performance, and it walks through generic interfaces, collections, custom generic classes, inheritance rules, diamond syntax, and common restrictions with concrete code examples and diagrams.

CollectionsGenericsJava
0 likes · 10 min read
A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls
java1234
java1234
Feb 10, 2026 · Fundamentals

Understanding Java Reflection: Core Concepts, Use Cases, and Trade‑offs

This article explains Java's reflection mechanism, covering its main uses such as dynamic class loading, handling unknown types, accessing private members, and framework development, then walks through basic steps, a complete code example, and discusses its advantages and drawbacks.

Dynamic LoadingFrameworksJava
0 likes · 6 min read
Understanding Java Reflection: Core Concepts, Use Cases, and Trade‑offs
java1234
java1234
Feb 7, 2026 · Backend Development

Why Service Layer Should Not Return a Result Object in Java

The article explains why returning a generic Result wrapper from a Java service layer breaks responsibility separation, harms reusability, complicates exception handling and testing, and obscures transaction boundaries, advocating for returning pure domain objects instead.

Design PrinciplesDomain-Driven DesignJava
0 likes · 13 min read
Why Service Layer Should Not Return a Result Object in Java
java1234
java1234
Feb 5, 2026 · Backend Development

Convert DOCX to PDF in Spring Boot with docx4j: A Lightweight Open‑Source Solution

This article walks through building a pure‑Java DOCX‑to‑PDF converter in Spring Boot using docx4j, compares it with alternatives, shows Maven dependencies, provides a utility class and controller example, and explains how to resolve Chinese font garbling on both Windows and Linux.

JavaPDF conversionSpring Boot
0 likes · 11 min read
Convert DOCX to PDF in Spring Boot with docx4j: A Lightweight Open‑Source Solution
java1234
java1234
Feb 3, 2026 · Backend Development

Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid

The article demonstrates how to achieve a ten‑fold reduction in API response time by building a three‑level cache pyramid (Caffeine L1, Redis L2, DB L3) in Spring Boot 3, covering dependencies, configuration, core template code, warm‑up, monitoring, load‑test results and common high‑concurrency pitfalls.

CacheCaffeineJava
0 likes · 8 min read
Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid
java1234
java1234
Jan 31, 2026 · Backend Development

How to Perform Transaction Processing in RabbitMQ with Java

RabbitMQ supports transactional messaging to guarantee atomic delivery, using txSelect to start, txCommit to finalize, and txRollback to abort; this article explains the mechanism, outlines its advantages and performance drawbacks, and provides a complete Java example with step‑by‑step code walkthrough.

JavaMessage QueueMessaging
0 likes · 5 min read
How to Perform Transaction Processing in RabbitMQ with Java