Xuanwu Backend Tech Stack
Author

Xuanwu Backend Tech Stack

Primarily covers fundamental Java concepts, mainstream frameworks, deep dives into underlying principles, and JVM internals.

80
Articles
0
Likes
156
Views
0
Comments
Recent Articles

Latest from Xuanwu Backend Tech Stack

80 recent articles
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 9, 2025 · Backend Development

Mastering Spring’s @Autowired for Collections: From Lists to Maps

This article explains how Spring’s @Autowired can inject List, Set, and Map collections, detailing injection mechanisms, code examples, workflow steps, common use cases like plugin systems and filter chains, and advanced tips such as @Qualifier, custom ordering, and handling pitfalls.

@AutowiredCollection InjectionSpring
0 likes · 11 min read
Mastering Spring’s @Autowired for Collections: From Lists to Maps
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 4, 2025 · Backend Development

Mastering Spring @Autowired Collection Injection: Lists, Sets, Maps Explained

This article explains how Spring's @Autowired annotation can inject collections such as List, Set, and Map, detailing injection mechanisms, ordering, practical examples like filter chains and validators, advanced features like @Qualifier and custom ordering, and important considerations such as circular dependencies and performance impacts.

@AutowiredCollection InjectionJava
0 likes · 12 min read
Mastering Spring @Autowired Collection Injection: Lists, Sets, Maps Explained
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 3, 2025 · Backend Development

When to Use @Autowired vs @Resource in Spring? A Deep Dive

This article explains the differences between Spring's @Autowired and JSR‑250's @Resource annotations, covering their injection strategies, supported features, usage examples, comparison tables, and performance considerations for backend developers.

@Autowired@ResourceJava EE
0 likes · 7 min read
When to Use @Autowired vs @Resource in Spring? A Deep Dive
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 1, 2025 · Backend Development

Mastering Spring Bean Initialization: @PostConstruct, InitializingBean, and init‑method Explained

This article explains the three Spring bean initialization callbacks—@PostConstruct, InitializingBean, and init‑method—their fixed execution order, underlying processing mechanisms, code examples, and guidance on choosing the most suitable approach for different development scenarios.

Bean InitializationInitializingBeanJava Backend
0 likes · 9 min read
Mastering Spring Bean Initialization: @PostConstruct, InitializingBean, and init‑method Explained
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jun 16, 2025 · Backend Development

Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples

ZooKeeper is an open‑source distributed coordination service that provides a simple, efficient mechanism for managing shared state, and this guide explores seven typical scenarios—including distributed locks, service registration, configuration management, queues, leader election, notifications, and barriers—complete with Java code examples and usage details.

Configuration ManagementDistributed CoordinationDistributed Lock
0 likes · 9 min read
Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jun 15, 2025 · Backend Development

Understanding Zookeeper’s One‑Time Watch and Persistent Listener Techniques

This article explains why Zookeeper's watch mechanism triggers only once, outlines the performance, reliability, and design reasons behind it, describes its asynchronous eventual consistency, and provides Java code examples for basic watches, manual re‑registration, and using the Curator framework for persistent listeners.

JavaOne-time Triggercurator
0 likes · 7 min read
Understanding Zookeeper’s One‑Time Watch and Persistent Listener Techniques
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
May 7, 2025 · Backend Development

How to Prevent Duplicate Message Consumption in RabbitMQ

RabbitMQ often suffers from duplicate message consumption due to network glitches, node failures, or ACK issues, but you can eliminate repeats by implementing idempotent processing, using caches or deduplication tables, and leveraging manual acknowledgments or the Message Deduplication plugin, as illustrated with Java examples.

JavaManual AcknowledgmentMessage Deduplication
0 likes · 6 min read
How to Prevent Duplicate Message Consumption in RabbitMQ