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
Sep 8, 2024 · Backend Development

Master Java Serialization & Deserialization: Techniques, Pitfalls, and Security

This article explains Java serialization and deserialization concepts, outlines common use cases such as distributed systems and caching, compares multiple implementation methods including Serializable, Externalizable, JSON, XML, and binary libraries, and provides practical code examples, security tips, and best‑practice guidelines.

DeserializationExternalizableJSON
0 likes · 24 min read
Master Java Serialization & Deserialization: Techniques, Pitfalls, and Security
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
May 12, 2024 · Backend Development

Master Spring Global Exception & Data Handling with @ControllerAdvice

Learn how to use Spring's @ControllerAdvice, @ExceptionHandler, @InitBinder, and @ModelAttribute annotations to implement global exception handling, data binding, and pre-processing, including custom exceptions, order control with @Order, and practical code examples for robust backend development.

ControllerAdviceDataBindingExceptionHandling
0 likes · 12 min read
Master Spring Global Exception & Data Handling with @ControllerAdvice
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Apr 11, 2024 · Backend Development

Why OpenFeign Misinterprets Dates and How to Fix It

When converting Date parameters in OpenFeign calls, the client serializes them to strings using the local CST timezone, causing a 14‑hour discrepancy that can be resolved by using timestamps, @DateTimeFormat, or custom formatters on both client and server sides.

FeignClientJavaOpenFeign
0 likes · 10 min read
Why OpenFeign Misinterprets Dates and How to Fix It
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Feb 6, 2024 · Fundamentals

How to Merge Two Sorted Arrays In‑Place Without Extra Space

This article walks through the classic interview problem of merging two non‑decreasing integer arrays directly into the first array, compares a naïve extra‑array solution with an optimal in‑place two‑pointer algorithm, and provides full Java implementations.

Javaarray mergingin-place algorithm
0 likes · 7 min read
How to Merge Two Sorted Arrays In‑Place Without Extra Space
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Dec 30, 2023 · Backend Development

Unlock Java 8 Streams: Simplify Collections with Powerful Operations

This article introduces Java 8 Stream API, explains how to create streams from collections, demonstrates common intermediate operations such as filter, map, flatMap, limit, skip, distinct, sorted, peek, and shows terminal actions like forEach, count, max, min, findFirst, findAny, and match methods with practical code examples.

CollectionsFunctional ProgrammingIntermediate Operations
0 likes · 17 min read
Unlock Java 8 Streams: Simplify Collections with Powerful Operations
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Aug 3, 2022 · Fundamentals

Why Is Java String Immutable? Understanding Final, Thread Safety, and Performance

This article examines Java's String immutability, detailing how the final character array and private design prevent modification, compares mutable alternatives like StringBuilder and StringBuffer, and discusses their thread safety and performance implications to guide developers in choosing the appropriate class for different scenarios.

Javaimmutabilitystring
0 likes · 5 min read
Why Is Java String Immutable? Understanding Final, Thread Safety, and Performance