Skip to content
Tagged articles

Java

500 articles · Page 2 of 5
Architect's Guide
Architect's Guide
Oct 17, 2026 · Backend Development

5 Java Thread Communication Techniques: From volatile to LockSupport

This article explains five Java thread communication methods—volatile flag, Object wait/notify, CountDownLatch, ReentrantLock with Condition, and LockSupport—with runnable code examples showing how each coordinates a producer thread adding items and a consumer thread triggered at the fifth addition.

ConcurrencyCountDownLatchJava
0 likes · 10 min read
5 Java Thread Communication Techniques: From volatile to LockSupport
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Oct 15, 2026 · Artificial Intelligence

6-Round AI Interview: From ML/DL to RAG & Agent - SP Offer Breakdown

This article explains AI/ML/DL/LLM hierarchy, contrasts traditional vs AI programming, details LLM core concepts (Token, context window, emergence, hallucination, RAG, Agent), covers training paradigms, shows Java integration with Spring AI/LangChain4j, and provides a 6-round interview simulation with lifecycle closure.

AIAgentDeep Learning
0 likes · 20 min read
6-Round AI Interview: From ML/DL to RAG & Agent - SP Offer Breakdown
samdeepthink
samdeepthink
Oct 15, 2026 · Fundamentals

Java Condition: Fine-Grained Thread Wakeup vs notifyAll Pitfalls

This article demonstrates the evolution from synchronized/wait/notify to Lock/Condition for producer-consumer patterns, showing how notifyAll causes spurious wakeups with multiple threads and how Condition enables precise signaling via separate condition queues for producers and consumers.

ConcurrencyConditionJava
0 likes · 14 min read
Java Condition: Fine-Grained Thread Wakeup vs notifyAll Pitfalls
samdeepthink
samdeepthink
Oct 14, 2026 · Backend Development

Java Lock vs synchronized: Timeout, Interrupt & Fair Locking Explained

This article compares Java's synchronized keyword with the Lock interface (ReentrantLock), demonstrating how Lock provides finer-grained control through timeout acquisition (tryLock), interruptible locking (lockInterruptibly), fair/non-fair policies, and manual unlock in finally blocks, with code examples for each scenario.

ConcurrencyFair LockJava
0 likes · 9 min read
Java Lock vs synchronized: Timeout, Interrupt & Fair Locking Explained
21CTO
21CTO
Oct 13, 2026 · Industry Insights

TIOBE October 2026 Rankings: Julia Returns to Top 20 After Three Years

TIOBE's October 2026 programming language index shows Julia re-entering the top 20 after a three-year absence, while Python leads at 19.23% despite a year-over-year decline, and C widens its lead over C++; the index also added Chinese search terms to better reflect global developer activity.

C#JavaJulia
0 likes · 10 min read
TIOBE October 2026 Rankings: Julia Returns to Top 20 After Three Years
Java Captain
Java Captain
Oct 13, 2026 · Backend Development

Spring JdbcTemplate vs NamedParameterJdbcTemplate: Complete Guide with Code Examples

This tutorial demonstrates Spring's JdbcTemplate and NamedParameterJdbcTemplate for database CRUD operations, covering Maven setup, Druid connection pooling, configuration classes, DAO implementations with both positional and named parameters, service layer, and JUnit tests, recommending NamedParameterJdbcTemplate for production use.

BeanPropertyRowMapperDruidJDBC
0 likes · 21 min read
Spring JdbcTemplate vs NamedParameterJdbcTemplate: Complete Guide with Code Examples
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Oct 12, 2026 · Backend Development

13 Years of Java Mastery: Free Knowledge Map for Backend Engineers

A Java engineer shares a free, comprehensive knowledge map built from 13 years in Beijing, covering nine modules including industrial project breakdowns, source code deep dives, algorithm patterns, AI integration, interview strategies, system design frameworks, and developer tools—all aimed at helping engineers move beyond CRUD and advance to architecture roles.

AI IntegrationAlgorithmsBackend Development
0 likes · 33 min read
13 Years of Java Mastery: Free Knowledge Map for Backend Engineers
Java Captain
Java Captain
Oct 12, 2026 · Backend Development

Spring RedisTemplate with Pure Annotation Configuration: Complete Tutorial

This tutorial demonstrates configuring Spring Data RedisTemplate using pure Java annotations, covering Maven dependencies, connection pooling, serialization, and CRUD operations for String, List, Hash, Set, and Sorted Set data types with complete code examples.

Annotation ConfigurationConnection PoolingJava
0 likes · 14 min read
Spring RedisTemplate with Pure Annotation Configuration: Complete Tutorial
Alibaba Cloud Native
Alibaba Cloud Native
Oct 12, 2026 · Artificial Intelligence

Integrating JEV Judgment Model into AgentScope Java for Structured Agent Decisions

This article details how to integrate TypeSafe's JEV judgment model into AgentScope Java, enabling structured probabilistic decisions at every agent execution stage — tool selection, execution guards, response auditing, context compression, evidence filtering, supervision, and trace evaluation — with practical code examples for client setup, JevJudge definitions, Harness middleware wiring, and Spring Boot configuration.

AI agentsAgentScopeHarness middleware
0 likes · 37 min read
Integrating JEV Judgment Model into AgentScope Java for Structured Agent Decisions
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Oct 11, 2026 · Backend Development

13 Years of Java Mastery: A Free Knowledge Map for Engineers

A Java engineer shares a free, comprehensive knowledge map built from 13 years in Beijing, covering nine modules including industrial projects, source code analysis, algorithm patterns, AI integration, interview strategies, system design, tools, and more, with practical methodologies and no paywalls.

AI IntegrationAlgorithmsBackend Development
0 likes · 31 min read
13 Years of Java Mastery: A Free Knowledge Map for Engineers
Java Captain
Java Captain
Oct 10, 2026 · Backend Development

ElasticSearch DSL & Java RestHighLevelClient: Complete Operations Guide

This tutorial demonstrates how to perform ElasticSearch index, document, query, and aggregation operations using both DSL queries and Java RestHighLevelClient within a SpringBoot project, covering setup, CRUD, search types, sorting, pagination, highlighting, and nested aggregations with code examples.

AggregationsDSLDocument Operations
0 likes · 29 min read
ElasticSearch DSL & Java RestHighLevelClient: Complete Operations Guide
CodeSmart Hoops
CodeSmart Hoops
Oct 10, 2026 · Backend Development

Sa-Token Deep Dive: 10 Interview Questions on Auth, Multi-Account & SSO

This article explores 10 key Sa-Token interview questions covering core interfaces, one-line login internals, token styles, second-level authentication, multi-account architecture, distributed storage options, SSO comparisons, token passing strategies, permission annotation implementation, and production security hardening.

AOPInterview PreparationJava
0 likes · 21 min read
Sa-Token Deep Dive: 10 Interview Questions on Auth, Multi-Account & SSO
Coder Trainee
Coder Trainee
Oct 9, 2026 · Artificial Intelligence

GraphRAG: Knowledge Graph-Enhanced Retrieval for Multi-Hop Reasoning

This article explains GraphRAG, which combines knowledge graphs with RAG to solve multi-hop reasoning and global query limitations of traditional RAG, detailing Microsoft's GraphRAG approach, Java implementation with Neo4j for entity extraction and graph storage, retrieval processes, community summarization, cost trade-offs, and when to choose GraphRAG over standard RAG.

Community DetectionEntity ExtractionGraphRAG
0 likes · 11 min read
GraphRAG: Knowledge Graph-Enhanced Retrieval for Multi-Hop Reasoning
Xiaohongshu Tech REDtech
Xiaohongshu Tech REDtech
Oct 9, 2026 · Backend Development

RED OHC Open-Sourced: New Java Off-Heap Cache SOTA, 3.38x Multi-Threaded Throughput

Xiaohongshu open-sources RED OHC, a Java off-heap cache achieving 3.38x throughput over Cassandra OHC in 32-thread reads via lock-free reads, epoch-based reclamation, background actor for eviction and memory return, and cache-line-aligned data structures, with benchmarks showing near-zero heap allocation and GC.

BenchmarkCassandra OHCJava
0 likes · 25 min read
RED OHC Open-Sourced: New Java Off-Heap Cache SOTA, 3.38x Multi-Threaded Throughput
IT Services Circle
IT Services Circle
Oct 9, 2026 · Backend Development

Why ZXing Became the Global Standard for QR Code Processing

ZXing is a 19-year-old open-source Java library that powers QR code scanning in WeChat, Alipay, and Android; it offers zero dependencies, a two-line API, multi-format support, and the fastest detection speed among open-source libraries, though it struggles with inverted colors and tiny codes.

AndroidBarcodeJava
0 likes · 14 min read
Why ZXing Became the Global Standard for QR Code Processing
samdeepthink
samdeepthink
Oct 9, 2026 · Backend Development

CyclicBarrier vs CountDownLatch: Who Waits? Java Concurrency Deep Dive

This article explains the key differences between Java's CyclicBarrier and CountDownLatch, focusing on which threads wait, thread lifecycle after signaling, reusability, and a practical pressure-test example using CountDownLatch to simulate concurrent requests.

ConcurrencyCountDownLatchCyclicBarrier
0 likes · 8 min read
CyclicBarrier vs CountDownLatch: Who Waits? Java Concurrency Deep Dive
SpringMeng
SpringMeng
Oct 9, 2026 · Backend Development

5 IntelliJ IDEA Plugins to Catch Java Bugs Early: A Practical Guide

This article reviews five IntelliJ IDEA plugins—Alibaba Java Coding Guidelines, SonarQube for IDE, CheckStyle-IDEA, PMD, and SpotBugs—that help Java developers detect code style violations, security issues, code smells, and potential bugs directly in the IDE, with guidance on combining them effectively.

Alibaba Java Coding GuidelinesCheckStyleIntelliJ IDEA
0 likes · 9 min read
5 IntelliJ IDEA Plugins to Catch Java Bugs Early: A Practical Guide
Architect's Guide
Architect's Guide
Oct 8, 2026 · Backend Development

Seamless Token Refresh: Backend vs Frontend Strategies for JWT Authentication

This article explains why seamless token refresh prevents sudden logouts, compares backend automatic token renewal with frontend dual-token (access/refresh) approaches, provides Java JWT implementation code with expiration calculations, and discusses handling edge cases like long-form submissions where no requests are sent before token expiry.

Frontend-Backend IntegrationJavaSpring Boot
0 likes · 10 min read
Seamless Token Refresh: Backend vs Frontend Strategies for JWT Authentication
SpringMeng
SpringMeng
Oct 8, 2026 · Backend Development

Spring AI Alibaba Still Active: Why Java Remains Viable for Production AI Systems

The article debunks rumors that Spring AI Alibaba has stopped development, citing recent releases, and argues Java's strength in AI lies not in model training but in integrating AI capabilities into production enterprise systems through RAG, tool calling, and robust engineering practices.

AI IntegrationAgent WorkflowsJava
0 likes · 11 min read
Spring AI Alibaba Still Active: Why Java Remains Viable for Production AI Systems
Java Captain
Java Captain
Oct 7, 2026 · Backend Development

MyBatis XML Configuration Guide: From Setup to CRUD Operations

This tutorial walks through configuring MyBatis with XML for database operations, covering Maven dependencies, project structure, core configuration files, mapper interfaces, dynamic SQL, and JUnit testing with a complete employee CRUD example.

CRUDJDBCJUnit testing
0 likes · 20 min read
MyBatis XML Configuration Guide: From Setup to CRUD Operations
Java Captain
Java Captain
Oct 6, 2026 · Backend Development

Java Stream API: LINQ-Style Collection Filtering & Extraction

This tutorial demonstrates Java Stream API for filtering and extracting collection data, covering stream creation from Lists, Sets, Maps, and arrays, key operations like filter, limit, skip, concat, distinct, and collecting results into List, Set, or Map with practical code examples.

JavaJava 8LINQ
0 likes · 13 min read
Java Stream API: LINQ-Style Collection Filtering & Extraction
Architect's Guide
Architect's Guide
Oct 5, 2026 · Backend Development

Open-Source Tool Generates Full-Stack Spring Boot CRUD Code from DB Schema

This article introduces an open-source code generator that automatically creates complete Spring Boot CRUD layers—entities, DAOs, MyBatis mappers, services, converters, and controllers—from database schemas or SQL, featuring customizable templates with dynamic parameters and reusable code blocks for team-specific conventions.

Backend DevelopmentJavaMyBatis
0 likes · 19 min read
Open-Source Tool Generates Full-Stack Spring Boot CRUD Code from DB Schema
Coder Trainee
Coder Trainee
Oct 4, 2026 · Artificial Intelligence

RAG Prompt Engineering: Constraining Models to Use Retrieved Knowledge Correctly

This article details how to design effective RAG prompts that prevent hallucination, enforce source citation, handle missing information, concatenate multiple documents with metadata, manage multi-turn conversations with history compression, and provides a complete prompt template with a tuning checklist.

Hallucination PreventionJavaLLM
0 likes · 13 min read
RAG Prompt Engineering: Constraining Models to Use Retrieved Knowledge Correctly
Java Tech Workshop
Java Tech Workshop
Oct 3, 2026 · Backend Development

LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting

This article demonstrates how to build a bounded LRU cache in three lines by extending LinkedHashMap with access-order enabled and overriding removeEldestEntry, detailing the internal doubly-linked list mechanics, thread-safety limitations, memory overhead, and when to migrate to Caffeine for advanced features like TTL and high concurrency.

CaffeineConcurrencyData Structures
0 likes · 22 min read
LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting
Java Tech Enthusiast
Java Tech Enthusiast
Oct 2, 2026 · Backend Development

Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients

Spring Boot 4.1 introduces InetAddressFilter to block internal network access at the HTTP client level, replacing scattered string checks with a centralized allowlist approach. The article demonstrates configuring RestClient.Builder for external-only access, adding URI validation, disabling auto-redirects, setting timeouts, limiting response size, and enforcing secure patterns via tests and code reviews.

HTTP Client SecurityInetAddressFilterJava
0 likes · 15 min read
Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients
macrozheng
macrozheng
Sep 30, 2026 · Backend Development

JetBrains' VS Code Plugin Adds IntelliJ IDEA Features for Java/Kotlin

The article reviews JetBrains' official 'Java and Kotlin by IntelliJ IDEA' VS Code plugin, which runs IntelliJ's language server via LSP to deliver code completion, navigation, refactoring, debugging, and Gradle/Maven/Bazel project import, though test discovery and execution are not yet supported.

IntelliJ IDEAJavaKotlin
0 likes · 6 min read
JetBrains' VS Code Plugin Adds IntelliJ IDEA Features for Java/Kotlin
Java Tech Workshop
Java Tech Workshop
Sep 29, 2026 · Backend Development

Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained

This article explains the four types of Java method references (static, bound instance, arbitrary instance, constructor), their equivalent lambdas, compiler overload resolution, readability trade-offs, and practical examples showing when method references improve clarity versus when lambdas remain preferable.

Best PracticesCode ReadabilityCompiler Overload Resolution
0 likes · 21 min read
Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained
liandk
liandk
Sep 29, 2026 · Backend Development

Java Fault Analysis Masterclass: 7-Step Review, 6 Root Causes, 8 HA Principles

This final chapter of a 20-part Java series presents a 7-step fault review SOP, categorizes 99% of production faults into six root causes, defines eight high-availability architecture principles, and outlines a four-layer risk prevention system to shift from reactive firefighting to proactive stability.

Architecture PrinciplesFault AnalysisHigh Availability
0 likes · 13 min read
Java Fault Analysis Masterclass: 7-Step Review, 6 Root Causes, 8 HA Principles
LuTiao Programming
LuTiao Programming
Sep 28, 2026 · Backend Development

Java Discount Allocation: Solving the 1-Cent Rounding Error in Partial Refunds

The article presents a Java solution for allocating order-level discounts to individual items using integer arithmetic and deterministic remainder distribution, ensuring accurate partial refunds by persisting per-unit prices, allocated discounts, and payable amounts at checkout, with database schema and concurrency considerations.

BigIntegerJavaOrder Processing
0 likes · 12 min read
Java Discount Allocation: Solving the 1-Cent Rounding Error in Partial Refunds
samdeepthink
samdeepthink
Sep 28, 2026 · Backend Development

Java Semaphore Decoupling: Thread-Agnostic Permits vs. Lock Coupling

This article explains Java Semaphore's core decoupling property—where any thread can acquire or release permits—contrasting it with ReentrantLock's thread-owned locking, demonstrates with Java 17 code examples, and shows real-world rate-limiting applications in Sentinel, Dubbo, and Tomcat.

ConcurrencyDecouplingJava
0 likes · 8 min read
Java Semaphore Decoupling: Thread-Agnostic Permits vs. Lock Coupling
Java Tech Workshop
Java Tech Workshop
Sep 28, 2026 · Fundamentals

Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?

This article analyzes Java 8+ interface default and static methods, explaining their original purpose for backward-compatible interface evolution, valid use cases like optional capabilities and mixin-style derived methods, and common pitfalls including hidden assumptions, silent failures, fixed workflows that prevent customization, and binary vs semantic compatibility issues. It includes a real-world refactoring example for payment callback handlers.

Interface Default MethodsInterface EvolutionInterface Static Methods
0 likes · 24 min read
Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Sep 27, 2026 · Fundamentals

Complete Algorithm & Data Structure Interview Guide: From Arrays to Distributed Systems with Java Implementations

This comprehensive 30,000-word guide covers 9 core modules — data structures, sorting, search algorithms, algorithm paradigms, string algorithms, hash engineering, rate limiting, distributed IDs, and massive data processing — with Java code, complexity tables, and interview-focused explanations for big-tech preparation.

AlgorithmsData StructuresInterview Preparation
0 likes · 76 min read
Complete Algorithm & Data Structure Interview Guide: From Arrays to Distributed Systems with Java Implementations
Java Baker
Java Baker
Sep 27, 2026 · Backend Development

Why Architects Must Build i18n/l10n From Day One: A Practical Guide

This article explains why internationalization and localization should be implemented from the start, covering UTF-8 encoding, locale handling, resource bundles, dynamic content translation strategies, time zone and currency best practices, legal compliance like GDPR, and real-world failure cases.

DateTimeFormatterJavaJavaMoney
0 likes · 12 min read
Why Architects Must Build i18n/l10n From Day One: A Practical Guide
Geek Labs
Geek Labs
Sep 27, 2026 · Artificial Intelligence

Self-Hosted AI Employee Workbench: One-Command Deploy, Digital Teams & Model Failover

MateClaw is an open-source, self-hosted AI workbench that deploys via a single Docker command, providing digital employees with roles, knowledge bases, and tool permissions, team collaboration via DAG task graphs, a traceable wiki-style knowledge base with page-level citations, model failover across 14+ providers, and enterprise-grade RBAC, audit logs, and approval workflows — all in a Java 21 Spring Boot stack.

AI agentsDigital EmployeesJava
0 likes · 11 min read
Self-Hosted AI Employee Workbench: One-Command Deploy, Digital Teams & Model Failover
21CTO
21CTO
Sep 26, 2026 · Backend Development

Java 28 Takes Shape: Value Objects, Generational GC, AOT Compilation & More

Oracle reveals the feature roadmap for JDK 28, a non-LTS release due March 2027, including value objects, generational Shenandoah GC, strictly initialized fields, a standard JSON API, PEM encoding for crypto objects, and ahead-of-time compilation to cut startup time.

AOT CompilationJDK 28JSON:API
0 likes · 6 min read
Java 28 Takes Shape: Value Objects, Generational GC, AOT Compilation & More
Xiaolin Talks Programming
Xiaolin Talks Programming
Sep 25, 2026 · Backend Development

Spring Boot + Apache CXF: Building Production-Ready SOAP WebServices with WSDL & WS-Security

This guide covers integrating Spring Boot with Apache CXF to publish and consume SOAP web services, detailing WSDL-first vs code-first approaches, endpoint configuration, client invocation patterns, WS-Security (username tokens, signatures, encryption), MTOM attachments, message validation, exception handling, testing strategies, and production hardening against XXE, large payloads, and version conflicts.

Apache CXFBackend DevelopmentJava
0 likes · 26 min read
Spring Boot + Apache CXF: Building Production-Ready SOAP WebServices with WSDL & WS-Security
LuTiao Programming
LuTiao Programming
Sep 24, 2026 · Backend Development

Spring Boot 4.1's InetAddressFilter Finally Blocks SSRF in URL Preview APIs

The article demonstrates how Spring Boot 4.1's new InetAddressFilter.externalAddresses() simplifies SSRF protection for user-supplied URLs, replacing manual IP checks with a centralized HTTP client filter, while also covering URL validation, redirect handling, timeouts, response size limits, and testing strategies to secure link preview and similar features.

Backend DevelopmentInetAddressFilterJava
0 likes · 14 min read
Spring Boot 4.1's InetAddressFilter Finally Blocks SSRF in URL Preview APIs
LuTiao Programming
LuTiao Programming
Sep 23, 2026 · Backend Development

How to Add Passkey Authentication to Spring Boot with Spring Security 7.1

This guide demonstrates integrating Passkey/WebAuthn authentication into a Spring Boot application using Spring Security 7.1's built-in support, covering dependency setup, security configuration, frontend JavaScript implementation for credential registration and authentication, database persistence with JDBC repositories, and a migration strategy that retains password login while adding Passkey as a second factor.

JDBCJavaPasskey
0 likes · 17 min read
How to Add Passkey Authentication to Spring Boot with Spring Security 7.1
Java Captain
Java Captain
Sep 23, 2026 · Fundamentals

5 Common Java Memory Leak Scenarios and How to Detect Them

This article explains five common Java memory leak scenarios—long-lived collections, unclosed resources, ThreadLocal misuse, inner class references, and unregistered listeners—with code examples and recommends MAT and VisualVM for leak detection.

Garbage CollectionInner ClassJava
0 likes · 5 min read
5 Common Java Memory Leak Scenarios and How to Detect Them
Java Tech Enthusiast
Java Tech Enthusiast
Sep 23, 2026 · Artificial Intelligence

Java AI Framework Selection: Infrastructure vs. Orchestration Layers Compared

This guide categorizes six major Java AI frameworks into infrastructure and orchestration layers, detailing Spring AI 2.0's Advisor chain, LangChain4j's model breadth, Solon AI's Java 8 compatibility, Spring AI Alibaba's workflow engine, AgentScope's production-grade harness, and Embabel's deterministic GOAP planning to match frameworks to project constraints and scenarios.

AI FrameworksAgentScopeEmbabel
0 likes · 30 min read
Java AI Framework Selection: Infrastructure vs. Orchestration Layers Compared
JD Tech
JD Tech
Sep 22, 2026 · Backend Development

18 Advanced Java Coding Practices for High-Performance, Low-CPU Systems (Part 2)

This article details 18 advanced Java coding techniques (19-36) for high-performance, low-CPU systems, covering void/null avoidance, nested code flattening, final/static method optimization, primitive type usage, collection pre-sizing, memory management, immutable collections, loop optimization, wrapper caching, exception reuse, stack trace reduction, try-catch narrowing, bitwise operations, regex precompilation, memory alignment, constant-first comparisons, and batch processing.

Coding Best PracticesConcurrencyJVM
0 likes · 52 min read
18 Advanced Java Coding Practices for High-Performance, Low-CPU Systems (Part 2)
macrozheng
macrozheng
Sep 22, 2026 · Backend Development

Lithe: Lightweight Open-Source IDE for Java/Spring Boot AI Workflows

Lithe is an open-source lightweight IDE for Java and Spring Boot development that complements AI coding tools, offering project navigation, run/debug, Git diff, and database tools with ~300-400MB memory usage, auto-detected run configurations, and AI-generated commit messages.

AI-assisted developmentIDEJava
0 likes · 9 min read
Lithe: Lightweight Open-Source IDE for Java/Spring Boot AI Workflows
liandk
liandk
Sep 22, 2026 · Backend Development

Java Memory Leak Deep Dive: 10 Hidden Scenarios, MAT Analysis & Prevention

This comprehensive guide covers 10 hidden Java memory leak scenarios, a 6-step MAT-based investigation SOP, code-level fixes for ThreadLocal and static collections, emergency mitigation tactics, and long-term prevention standards to eliminate recurring OOM crashes.

GCJVMJava
0 likes · 15 min read
Java Memory Leak Deep Dive: 10 Hidden Scenarios, MAT Analysis & Prevention
java1234
java1234
Sep 22, 2026 · Backend Development

Why Developers Are Migrating to Apache PDFBox 3: Key Changes and Practical Examples

This article analyzes Apache PDFBox 3's major improvements over 2.x, including the new Loader API, incremental parsing for memory efficiency, rewritten IO layer with java.nio, and cleaner APIs, while providing practical code examples for loading PDFs, extracting text, and generating documents.

Apache PDFBox 3Backend DevelopmentJava
0 likes · 12 min read
Why Developers Are Migrating to Apache PDFBox 3: Key Changes and Practical Examples
Architect's Guide
Architect's Guide
Sep 22, 2026 · Fundamentals

Try-Catch Inside vs Outside For Loops: Behavior, Performance & When to Use Each

This article explains the critical behavioral difference when placing try-catch inside versus outside a for loop: outside placement terminates the loop on exception, while inside allows continuation. It also analyzes performance implications, showing negligible overhead when no exceptions occur but increased memory consumption if many iterations throw exceptions, and details the JVM exception table mechanics that underlie this behavior.

BytecodeException HandlingJava
0 likes · 6 min read
Try-Catch Inside vs Outside For Loops: Behavior, Performance & When to Use Each
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 22, 2026 · Backend Development

Dynamic Field Validation in Spring Boot via @DynamicValid and Argument Resolver

This article demonstrates how to implement per-endpoint dynamic field validation in Spring Boot 3.5.0 using a custom @DynamicValid annotation and HandlerMethodArgumentResolver, allowing flexible control over required, optional, and unknown fields for Map, JsonNode, or POJO parameters, with support for custom validators and integration with @Validated.

@DynamicValidBackend DevelopmentCustom Annotation
0 likes · 12 min read
Dynamic Field Validation in Spring Boot via @DynamicValid and Argument Resolver
Java Captain
Java Captain
Sep 21, 2026 · Backend Development

Java Collectors.toMap Pitfalls: Duplicate Keys, Null Values, and Safe Usage Patterns

This article explores hidden pitfalls in Java's Collectors.toMap including duplicate key exceptions, null value handling limitations, null key behavior, and null list safety, providing practical workarounds like merge functions and Optional-based null handling for robust stream-to-map conversions.

Best PracticesCollectors.toMapDuplicate Keys
0 likes · 7 min read
Java Collectors.toMap Pitfalls: Duplicate Keys, Null Values, and Safe Usage Patterns
samdeepthink
samdeepthink
Sep 21, 2026 · Fundamentals

Java final Visibility: JMM Freeze, This Escape, and Lock-Free Guarantees

This article explains how Java's final keyword ensures cross-thread visibility of final fields through the JMM's freeze action at constructor end, provided the this reference does not escape during construction, demonstrating with a code example that shows a race condition when this escapes and the correct behavior when final fields are properly frozen.

ConcurrencyJMMJava
0 likes · 7 min read
Java final Visibility: JMM Freeze, This Escape, and Lock-Free Guarantees
Internet Backend Architecture Stack
Internet Backend Architecture Stack
Sep 19, 2026 · Backend Development

Distributed ID Deep Dive: Snowflake vs Segment Mode – Trade-offs, Pitfalls & Production Patterns

This article analyzes real-world e-commerce failures to compare Snowflake and Segment ID generation, exposing architectural pitfalls like time rollback, machine ID collisions, and blocking windows, while providing production-ready code patterns and a decision matrix for choosing between ordered consistency and high-throughput availability.

Architecture DesignJavadistributed systems
0 likes · 22 min read
Distributed ID Deep Dive: Snowflake vs Segment Mode – Trade-offs, Pitfalls & Production Patterns
liandk
liandk
Sep 18, 2026 · Backend Development

Java Production Troubleshooting: Universal SOP & 10 Failure Cheat Sheet

This series finale presents a universal 6-step SOP for Java production troubleshooting, a bottom-up layered diagnosis model, a quick-reference guide for 10 common failure patterns with symptoms, root causes, and tools, plus five golden principles for incident handling.

GC AnalysisJVMJava
0 likes · 16 min read
Java Production Troubleshooting: Universal SOP & 10 Failure Cheat Sheet
Java Captain
Java Captain
Sep 17, 2026 · Backend Development

Building a Generic Web Authorization Annotation with JDK8: From Design to Compile-Time Validation

This article details the implementation of a generic @UserPermission annotation for horizontal authorization in Java web applications, covering annotation design, AOP-based interception, reflection-based parameter extraction, and compile-time validation using JDK8 annotation processors to prevent configuration errors.

Annotation ProcessingAuthorizationCompile-time Validation
0 likes · 19 min read
Building a Generic Web Authorization Annotation with JDK8: From Design to Compile-Time Validation
JD Tech
JD Tech
Sep 16, 2026 · Backend Development

18 Battle-Tested Java Coding Techniques for High-Performance, Low-CPU Systems (Part 1)

This article presents 18 practical coding techniques derived from million-QPS production systems to reduce CPU consumption and improve performance, covering type unification, string handling, loop optimization, caching strategies, and data structure selection with concrete before/after code examples.

Backend DevelopmentCPU optimizationCoding Best Practices
0 likes · 67 min read
18 Battle-Tested Java Coding Techniques for High-Performance, Low-CPU Systems (Part 1)
samdeepthink
samdeepthink
Sep 16, 2026 · Fundamentals

Java Happens-Before: Visibility Guarantees Beyond Temporal Order

This article demystifies Java's happens-before rules, showing why temporal order doesn't guarantee visibility, and how volatile combined with program order ensures a non-volatile variable's visibility across threads through a concrete code example.

ConcurrencyHappens-BeforeJMM
0 likes · 13 min read
Java Happens-Before: Visibility Guarantees Beyond Temporal Order
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 15, 2026 · Backend Development

Five MapStruct Mistakes That Make Code Harder to Maintain

This article identifies five common MapStruct misuses — complex logic in @Mapping expressions, missing bidirectional relationship handling, over-mapping in hot paths, injecting business services into mappers, and naive PATCH updates — and shows correct Java alternatives for each case.

Code MaintainabilityJPAJava
0 likes · 11 min read
Five MapStruct Mistakes That Make Code Harder to Maintain
liandk
liandk
Sep 14, 2026 · Backend Development

Java Thread Deadlock & Pool Exhaustion: Production Troubleshooting Guide

This guide covers real-world diagnosis and resolution of Java thread deadlocks and thread pool exhaustion — the two most common causes of service hangs with zero errors — using jstack, Arthas, and thread-state analysis to pinpoint root causes and apply permanent fixes.

Javaarthasjstack
0 likes · 13 min read
Java Thread Deadlock & Pool Exhaustion: Production Troubleshooting Guide
SpringMeng
SpringMeng
Sep 14, 2026 · Backend Development

Maven-mvnd: Drop-In Replacement for Faster Java Builds via Daemon & GraalVM

This article introduces Maven-mvnd (mvnd), a drop-in replacement for Apache Maven that uses a persistent daemon process and GraalVM native executables to dramatically accelerate build times, especially for multi-module projects, while maintaining full compatibility with existing Maven POM files and commands.

CI/CDGraalVMJava
0 likes · 9 min read
Maven-mvnd: Drop-In Replacement for Faster Java Builds via Daemon & GraalVM
liandk
liandk
Sep 13, 2026 · Backend Development

Java CPU 100% Spike: Complete Production Troubleshooting & Root Cause Analysis

This article provides a comprehensive guide to troubleshooting Java CPU 100% spikes in production, covering root cause categories, a standard SOP using top, jstack, and thread analysis, a real-world infinite loop case study, GC-related CPU issues, emergency mitigation steps, and long-term prevention practices.

CPU troubleshootingGarbage CollectionJava
0 likes · 13 min read
Java CPU 100% Spike: Complete Production Troubleshooting & Root Cause Analysis
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Sep 11, 2026 · Backend Development

Dubbo Internals Deep Dive: Architecture, Protocols, Load Balancing, Fault Tolerance, SPI & Triple Protocol

This comprehensive technical guide covers Dubbo's five-role architecture, service exposure/reference flows, protocol/serialization selection, four load balancing strategies, six cluster fault-tolerance policies, SPI adaptive extension mechanism, and Dubbo 3.x Triple protocol with application-level service discovery — complete with code-level call chains, comparison tables, and production-grade selection criteria.

Backend ArchitectureFault ToleranceJava
0 likes · 52 min read
Dubbo Internals Deep Dive: Architecture, Protocols, Load Balancing, Fault Tolerance, SPI & Triple Protocol
Rain's Path to Java Mastery
Rain's Path to Java Mastery
Sep 10, 2026 · Backend Development

MyBatis Deep Dive: 8 High-Frequency Interview Questions from Core Principles to Source Code Analysis

This comprehensive guide covers MyBatis core architecture, #{} vs ${} SQL injection risks, first/second-level caching, plugin mechanism with PageHelper, MyBatis-Plus features, Hibernate/JPA comparison, and SqlSession thread-safety — all with source-code-level diagrams and interview answer templates.

InterceptorJavaMyBatis
0 likes · 43 min read
MyBatis Deep Dive: 8 High-Frequency Interview Questions from Core Principles to Source Code Analysis
Architect's Guide
Architect's Guide
Sep 10, 2026 · Backend Development

Apollo Configuration Center: Complete Guide from Core Concepts to Kubernetes Deployment

This article provides a comprehensive tutorial on Apollo configuration center, covering its core concepts (application, environment, cluster, namespace), client architecture with long-polling and local caching, overall system design with Config/Admin services and Eureka, availability scenarios, hands-on SpringBoot integration with Maven setup, dynamic configuration testing (updates, rollbacks, offline fallback), multi-environment/cluster/namespace usage, and Kubernetes deployment via Docker and YAML manifests.

ApolloCtripJava
0 likes · 27 min read
Apollo Configuration Center: Complete Guide from Core Concepts to Kubernetes Deployment
liandk
liandk
Sep 9, 2026 · Backend Development

Master Arthas: Zero-Downtime Java Debugging, Live Logs & Hot Code Reload

This guide demonstrates how to use Arthas, Alibaba's open-source Java diagnostic tool, to troubleshoot production issues without downtime—covering installation, core commands (dashboard, trace, watch, stack, logger, redefine), three real-world case studies, and critical production safety rules.

Hot ReloadJavaPerformance Tuning
0 likes · 12 min read
Master Arthas: Zero-Downtime Java Debugging, Live Logs & Hot Code Reload
Java Tech Enthusiast
Java Tech Enthusiast
Sep 9, 2026 · Backend Development

Does try-catch Impact Java Performance? Bytecode & JIT Benchmark Analysis

The article debunks the myth that try-catch hurts Java performance by analyzing JVM exception tables, bytecode, and running benchmarks under interpreted and compiled modes, showing negligible overhead when no exception is thrown and that JIT compilation eliminates even minor goto costs.

BenchmarkBytecodeException Handling
0 likes · 18 min read
Does try-catch Impact Java Performance? Bytecode & JIT Benchmark Analysis
Architect Chen
Architect Chen
Sep 9, 2026 · Fundamentals

Java Adapter Pattern: Class vs Object Adapters with Code Examples

This article explains the Java Adapter design pattern, covering its definition, roles (Target, Adapter, Adaptee), and two implementation approaches—class adapter using inheritance and object adapter using composition—with complete code examples for each.

Adapter PatternClass AdapterComposition
0 likes · 4 min read
Java Adapter Pattern: Class vs Object Adapters with Code Examples
CodeOnCode
CodeOnCode
Sep 9, 2026 · Backend Development

Beyond Pause Times: Deep Dive into G1 GC Log Analysis for Java Performance Tuning

This article teaches how to analyze G1 GC logs beyond simple pause times by breaking down phase timings, heap changes, GC causes, and concurrent marking overhead, then mapping log signals like high Update RS or Object Copy to concrete code-level issues such as excessive reference writes, humongous allocations, or weak reference abuse.

Backend DevelopmentG1 GCGC Logs
0 likes · 27 min read
Beyond Pause Times: Deep Dive into G1 GC Log Analysis for Java Performance Tuning