Tagged articles

Java

5000 articles · Page 4 of 50
Tinker Programmer
Tinker Programmer
Jun 28, 2026 · Backend Development

Why Ubiquitous Language Belongs in Code, Not Just Meetings

The article shows how mismatched business and code vocabularies cause confusion, then guides readers through building a shared glossary, renaming domain objects and types in Java, and enforcing the conventions with a code‑review checklist to keep the ubiquitous language alive in the codebase.

Domain-Driven DesignGlossaryJava
0 likes · 11 min read
Why Ubiquitous Language Belongs in Code, Not Just Meetings
Coder Trainee
Coder Trainee
Jun 27, 2026 · Backend Development

Mastering Java Thread‑Pool Tuning: Practical Performance Tips

This article explains why Java thread pools need tuning, walks through the seven core ThreadPoolExecutor parameters, provides formula‑based sizing, offers configuration templates for different workloads, shows monitoring and dynamic adjustment techniques, and highlights common pitfalls with concrete code examples.

ConcurrencyJavaPerformance Tuning
0 likes · 8 min read
Mastering Java Thread‑Pool Tuning: Practical Performance Tips
LuTiao Programming
LuTiao Programming
Jun 27, 2026 · Artificial Intelligence

Microsoft's MAI-Code-1-Flash Arrives in IntelliJ, Prompting Java Teams to Ditch the One‑Model‑Fits‑All Approach

Microsoft's new MAI‑Code‑1‑Flash model is now available in IntelliJ, signaling a shift for Java developers from using a single, heavyweight AI model for all tasks to selecting fast, task‑specific models that improve iteration speed, reduce costs, and better match the risk profile of each coding activity.

AI codingCopilotJava
0 likes · 19 min read
Microsoft's MAI-Code-1-Flash Arrives in IntelliJ, Prompting Java Teams to Ditch the One‑Model‑Fits‑All Approach
Tinker Programmer
Tinker Programmer
Jun 27, 2026 · Backend Development

What Real Problem Does DDD Solve? Cutting Through the Confusing Concepts

The article explains why traditional three‑layer architectures let business logic bloat inside services, demonstrates the pitfalls of anemic domain models with a 7,000‑line SalaryService example, and shows how DDD’s rich domain model restores rule ownership and maintainability.

Anemic Domain ModelDomain-Driven DesignJava
0 likes · 10 min read
What Real Problem Does DDD Solve? Cutting Through the Confusing Concepts
macrozheng
macrozheng
Jun 27, 2026 · Backend Development

Boost IntelliJ IDEA Performance: 10 Simple Tweaks to Eliminate Lag

This article lists ten common IntelliJ IDEA pitfalls—slow performance, Lombok errors, broken breakpoints, encoding issues, unwanted Git files, Maven download slowness, class‑not‑found errors, broken shortcuts, MySQL timezone problems, and automatic reformatting—plus step‑by‑step solutions to make the IDE run smoothly for Java developers.

DebuggingGitIDE performance
0 likes · 25 min read
Boost IntelliJ IDEA Performance: 10 Simple Tweaks to Eliminate Lag
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 27, 2026 · Backend Development

Stop Building Code “Shit Mountains” – 10 Java Clean‑Code Techniques

This article presents ten practical Java clean‑code techniques—from meaningful naming and single‑purpose methods to avoiding magic numbers, writing purposeful comments, proper logging, defensive programming, DTO separation, Stream API usage, Optional handling, and safe ThreadPoolExecutor configuration—each illustrated with concrete code examples and explanations.

DTOJavaOptional
0 likes · 12 min read
Stop Building Code “Shit Mountains” – 10 Java Clean‑Code Techniques
Lisa Notes
Lisa Notes
Jun 27, 2026 · Fundamentals

How to Create, Manipulate, and Compare Java Strings Effectively

This article explains Java's immutable String class, covering three ways to instantiate strings, methods for length, concatenation (concat and +), character access, substring extraction, splitting, replacing, searching, and comparison using equals versus ==, with concrete code examples and key rules for each operation.

ComparisonImmutableJava
0 likes · 12 min read
How to Create, Manipulate, and Compare Java Strings Effectively
Java Tech Workshop
Java Tech Workshop
Jun 27, 2026 · Backend Development

Why Do final, static, and private Methods Escape Spring AOP Proxying?

The article explains that Spring AOP cannot intercept methods marked as private, static, or final because JDK dynamic proxies only work on public interface methods and CGLIB subclasses cannot override such methods, leading to static matching but dynamic execution failure, self‑invocation bypass, and complete loss of advice for these method types.

AOPCGLIBJDK Proxy
0 likes · 11 min read
Why Do final, static, and private Methods Escape Spring AOP Proxying?
Coder Trainee
Coder Trainee
Jun 26, 2026 · Backend Development

Java Performance Tuning: Practical Guide to Detecting and Fixing Memory Leaks

This article explains how to differentiate memory leaks from out‑of‑memory errors, identifies classic GC‑based leak signals, introduces a toolchain (jstat, jmap, MAT, Arthas, JProfiler), walks through a step‑by‑step investigation workflow, lists common leak patterns, presents a real‑world ThreadLocal leak case, and offers preventive measures such as monitoring, regular heap dumps, code review, and stress testing.

ArthasGCJava
0 likes · 9 min read
Java Performance Tuning: Practical Guide to Detecting and Fixing Memory Leaks
ZhiKe AI
ZhiKe AI
Jun 26, 2026 · Backend Development

Mastering the 5 Java IO Models: From OS Fundamentals to epoll vs select

An interviewer's question about the difference between epoll and select reveals a tangled web of OS‑level IO mechanisms; this article unpacks user‑space vs kernel‑space, DMA, zero‑copy, buffering, and maps the five Java IO models (BIO, NIO, AIO, etc.) to their underlying system calls.

AsynchronousIOJava
0 likes · 17 min read
Mastering the 5 Java IO Models: From OS Fundamentals to epoll vs select
liandk
liandk
Jun 25, 2026 · Fundamentals

Proxy Pattern Explained: Code Samples and Real‑World Scenarios

This article introduces the Proxy design pattern, explains its core purpose of controlling access without modifying original classes, illustrates everyday analogies, provides a complete Java static‑proxy implementation with interface, real subject, proxy and test code, and summarizes common use cases and distinctions from decorators.

AOPDesign PatternsDynamic Proxy
0 likes · 5 min read
Proxy Pattern Explained: Code Samples and Real‑World Scenarios
LuTiao Programming
LuTiao Programming
Jun 25, 2026 · Backend Development

GitHub Copilot’s New Deep‑Dive Java PR Review: Beyond a Quick Diff Glance

GitHub Copilot Code Review now uses grep, rg, glob and view to actively explore related files in Java pull requests, shifting AI code review from merely commenting on changed lines to investigating the broader impact on transactions, caches, messaging, database queries and system compatibility.

AI Code ReviewBackend DevelopmentGitHub Copilot
0 likes · 20 min read
GitHub Copilot’s New Deep‑Dive Java PR Review: Beyond a Quick Diff Glance
LuTiao Programming
LuTiao Programming
Jun 25, 2026 · Backend Development

JetBrains Junie Goes GA: AI Moves Beyond Code Generation to Control the Debugger

JetBrains has promoted its AI coding agent Junie from beta to general availability, expanding its capabilities from generating Java code to directly operating IntelliJ IDEA’s debugger, planning tasks, accessing project indexes, build configurations, tests, and databases, thereby shifting AI‑assisted troubleshooting from static code analysis to runtime evidence collection.

AI codingIntelliJ IDEAJava
0 likes · 20 min read
JetBrains Junie Goes GA: AI Moves Beyond Code Generation to Control the Debugger
Tinker Programmer
Tinker Programmer
Jun 25, 2026 · Interview Experience

Singleton Pattern: 6 Implementations, DCL Volatile Pitfall, Spring vs GoF

The article examines the evolution of six singleton implementations in Java, explains why the double‑checked locking pattern requires the volatile keyword to prevent instruction reordering bugs, compares Spring container‑managed singletons with classic GoF singletons, and highlights common pitfalls such as mutable state in singleton beans.

ConcurrencyDesign PatternJava
0 likes · 13 min read
Singleton Pattern: 6 Implementations, DCL Volatile Pitfall, Spring vs GoF
Coder Trainee
Coder Trainee
Jun 25, 2026 · Backend Development

Java Performance Tuning Part 1: Understanding the JVM Memory Model from a GC Log

This article launches a Java performance tuning series, explaining why GC logs are the starting point, reviewing the JVM memory model, showing how to enable and read GC logs, dissecting minor and full GC entries, comparing common GC algorithms, and introducing visualization tools to help pinpoint memory issues.

GCGarbage CollectionJVM
0 likes · 10 min read
Java Performance Tuning Part 1: Understanding the JVM Memory Model from a GC Log
Lisa Notes
Lisa Notes
Jun 25, 2026 · Fundamentals

Java Basics: Numbers, Characters, and String Handling – Day 53 Learning Notes

This tutorial walks through Java's core numeric and character utilities, covering number wrapper classes and autoboxing/unboxing, the Number hierarchy, formatted output with printf/format, DecimalFormat patterns, and the Math class’s constants and methods for arithmetic, logarithmic, trigonometric, and random number generation, all illustrated with concrete code examples.

AutoboxingDecimalFormatJava
0 likes · 15 min read
Java Basics: Numbers, Characters, and String Handling – Day 53 Learning Notes
Java Tech Workshop
Java Tech Workshop
Jun 25, 2026 · Backend Development

Mastering Spring AOP Pointcut Expressions: Precise execution and @annotation Matching Techniques

This article explains why many Spring AOP pointcuts fail, clarifies the execution and @annotation expressions, details wildcard usage, presents dozens of concrete pointcut examples, compares their granularity and performance, and offers best‑practice tips to avoid common pitfalls in real‑world Java projects.

AnnotationJavaPointcut
0 likes · 15 min read
Mastering Spring AOP Pointcut Expressions: Precise execution and @annotation Matching Techniques
Linyb Geek Road
Linyb Geek Road
Jun 25, 2026 · Backend Development

8 Hard‑Earned Rules for Using Spring @Transactional Correctly

Drawing on a decade of production experience, the article presents eight concrete rules for Spring @Transactional—covering transaction duration, proxy limitations, rollback settings, exception handling, read‑only flags, method visibility, bean separation for retries, and logging—to prevent common bugs and ensure reliable database operations.

JavaSpringSpring Boot
0 likes · 12 min read
8 Hard‑Earned Rules for Using Spring @Transactional Correctly
liandk
liandk
Jun 24, 2026 · Fundamentals

Mastering the Facade Pattern: Clear Explanation, Real‑World Scenarios, and Java Code

This article explains the Facade design pattern, illustrates everyday and software scenarios such as hotel front desks and multimedia players, provides a complete Java implementation with subsystem classes, a facade class, and client code, and lists typical business use cases while warning against common misconceptions.

Design PatternsFacade PatternJava
0 likes · 5 min read
Mastering the Facade Pattern: Clear Explanation, Real‑World Scenarios, and Java Code
Tinker Programmer
Tinker Programmer
Jun 24, 2026 · Fundamentals

Master Strategy, Observer, and Chain of Responsibility with Spring & MQ examples

This article walks through the three core behavioral design patterns—Strategy, Observer, and Chain of Responsibility—explaining their intent, showing problematic anti‑patterns, providing step‑by‑step Spring and MQ code implementations, mapping them to real‑world frameworks, and offering interview‑style comparison questions to solidify understanding.

Chain of ResponsibilityDesign PatternsJava
0 likes · 19 min read
Master Strategy, Observer, and Chain of Responsibility with Spring & MQ examples
Lisa Notes
Lisa Notes
Jun 24, 2026 · Fundamentals

Why Use final Classes and Methods in Java: A Practical Guide

The article explains how the Java final keyword can be applied to classes and methods to prevent inheritance and overriding, provides syntax and concrete code examples—including a final class and a final method in a chess algorithm—and advises using final for safety in constructors.

ImmutabilityJavaObject-Oriented
0 likes · 5 min read
Why Use final Classes and Methods in Java: A Practical Guide
Java Tech Workshop
Java Tech Workshop
Jun 24, 2026 · Backend Development

Mastering Spring AOP: All Four Types of Advice Explained

Spring AOP provides five distinct advice types—@Before, @AfterReturning, @AfterThrowing, @After, and @Around—each with specific execution timing; this guide explains their purposes, execution order, common pitfalls, and offers a complete SpringBoot example with code, Maven setup, and logging demonstrations.

AOPJavaLogging
0 likes · 13 min read
Mastering Spring AOP: All Four Types of Advice Explained
Shepherd Advanced Notes
Shepherd Advanced Notes
Jun 24, 2026 · Backend Development

Boosting Throughput 10×: Architecture Evolution and Tuning for High‑Concurrency Batch Processing

The article details how a sluggish batch‑processing system handling millions of records was redesigned with XXL‑JOB sharding, Redis‑based dynamic task distribution, cursor pagination, and selective transaction scopes, achieving nearly ten‑fold throughput improvement while addressing resource contention, load‑balancing, and reliable result reconciliation.

Batch ProcessingJavaMySQL
0 likes · 19 min read
Boosting Throughput 10×: Architecture Evolution and Tuning for High‑Concurrency Batch Processing
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 24, 2026 · Backend Development

Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×

A four‑month investigation revealed that Jackson’s default object‑mapper consumed over 60% of CPU time during order‑submission requests, causing 900 ms latency; switching to Jackson’s streaming API reduced average response time from 912 ms to 28 ms, cut GC pauses, and increased throughput eight‑fold, while introducing readability and validation trade‑offs.

JSON ParsingJacksonJava
0 likes · 8 min read
Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×
LuTiao Programming
LuTiao Programming
Jun 23, 2026 · Artificial Intelligence

Spring AI 2.0’s New Lifesaver: Guaranteed JSON Output from Large Models

Spring AI 2.0 adds self‑healing structured output with schema validation and provider‑side constraints, letting Java applications receive reliable JSON objects from large language models, eliminating brittle string‑cleaning code while still requiring business‑level validation.

AI integrationJSON SchemaJava
0 likes · 20 min read
Spring AI 2.0’s New Lifesaver: Guaranteed JSON Output from Large Models
Coder Trainee
Coder Trainee
Jun 23, 2026 · Backend Development

Production-Grade Deployment and Best Practices for Java AI Applications

This article examines the three core challenges—stability, cost, and observability—of running Java AI services in production and presents concrete solutions such as timeout and retry policies, circuit‑breaker fallback, token‑monitoring, caching, tracing, custom metrics, and Docker‑based containerization.

AIDockerJava
0 likes · 6 min read
Production-Grade Deployment and Best Practices for Java AI Applications
liandk
liandk
Jun 23, 2026 · Fundamentals

Decorator Pattern Explained: Simple Theory, Real‑World Scenarios, and Java Code

The article introduces the Decorator pattern, explains its purpose of dynamically adding functionality without altering existing classes, illustrates the concept with everyday analogies and a complete Java milk‑tea example, and lists typical use cases and common pitfalls.

Code ExampleDecorator PatternDesign Patterns
0 likes · 5 min read
Decorator Pattern Explained: Simple Theory, Real‑World Scenarios, and Java Code
ITPUB
ITPUB
Jun 23, 2026 · Backend Development

Why AI Coding Feels Much Slower in Java and How Five Harness Techniques Fix It

The article explains why AI‑assisted coding loops that run instantly on lightweight projects stall in Java microservices, and presents five concrete harness engineering principles—dependency inversion, zero‑intrusion profile isolation, CLI tool integration, CLAUDE.md documentation, and verification scripts—to create a fully local, AI‑friendly development environment.

AI codingCLIJava
0 likes · 23 min read
Why AI Coding Feels Much Slower in Java and How Five Harness Techniques Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 23, 2026 · Backend Development

One Bad Log Can Halve Spring Boot Throughput – How to Log Without Losing Performance

The article explains why effective logging is crucial for Java applications, compares proper and improper logging practices with SLF4J and Logback, and provides fourteen concrete best‑practice guidelines—including correct logger setup, level usage, placeholders, asynchronous and structured logging—to avoid performance degradation and security risks.

JavaSpring Bootasynchronous logging
0 likes · 14 min read
One Bad Log Can Halve Spring Boot Throughput – How to Log Without Losing Performance
Lisa Notes
Lisa Notes
Jun 23, 2026 · Fundamentals

Understanding Java’s Object Class: Core Methods, Cloning, and Equality

The article explains Java's Object class as the root of all classes, details its fundamental methods such as clone, equals, hashCode, toString, finalize and getClass, illustrates shallow vs. deep copying, shows how to override equals with a Book example, and warns about using finalize for cleanup.

CloneJavaObject class
0 likes · 10 min read
Understanding Java’s Object Class: Core Methods, Cloning, and Equality
Java Tech Workshop
Java Tech Workshop
Jun 23, 2026 · Backend Development

Request vs Session Scope: Usage Scenarios and Thread‑Safety Pitfalls in Java Web

Understanding the lifecycle, scope, and thread characteristics of HttpServletRequest and HttpSession reveals common misuse that leads to data corruption, login state errors, and lost cart data; the article explains core differences, proper use cases, real‑world bug examples, and practical solutions such as read‑only policies, synchronization, thread‑safe collections, and Redis‑based session storage.

JavaRequest ScopeSession Scope
0 likes · 14 min read
Request vs Session Scope: Usage Scenarios and Thread‑Safety Pitfalls in Java Web
LuTiao Programming
LuTiao Programming
Jun 22, 2026 · Backend Development

Claude Agent in IntelliJ IDEA Public Beta: How Java Development Is Changing

The article analyzes the public beta of Claude Agent in IntelliJ IDEA, explaining how its deep IDE integration transforms Java developers' workflow from manual code editing to AI‑driven multi‑step task execution, while highlighting new risks, team‑level usage, and practical start‑up steps.

AI AgentClaudeGitHub Copilot
0 likes · 16 min read
Claude Agent in IntelliJ IDEA Public Beta: How Java Development Is Changing
Coder Trainee
Coder Trainee
Jun 22, 2026 · Artificial Intelligence

Building Java AI Agents with LangChain4j: A Hands‑On Guide

This article explains why LangChain4j is needed for advanced Java AI agents, compares its capabilities with Spring AI, walks through project setup, configuration, defining tools and memory, assembling the agent, and demonstrates a complete smart‑customer service example with testing commands.

AI AgentsChatMemoryJava
0 likes · 10 min read
Building Java AI Agents with LangChain4j: A Hands‑On Guide
Java Architect Handbook
Java Architect Handbook
Jun 22, 2026 · Backend Development

How to Implement Consumer‑Side Throttling in RabbitMQ

RabbitMQ achieves consumer‑side throttling by configuring basic.qos with a prefetchCount, disabling automatic ACK, and using manual ACK so that the broker only pushes a limited number of unacknowledged messages, with detailed guidance on parameter settings, pitfalls, and code examples.

Javabasic.qosconsumer throttling
0 likes · 10 min read
How to Implement Consumer‑Side Throttling in RabbitMQ
LuTiao Programming
LuTiao Programming
Jun 22, 2026 · Industry Insights

SpaceX’s $60B Cursor Deal Shows AI Programming Moving Beyond Code Writing

SpaceX’s $60 billion acquisition of Cursor reveals a turning point where AI programming is evolving from merely generating code snippets to orchestrating the entire software development lifecycle—handling requirements analysis, environment setup, testing, and pull‑request creation—especially within complex Java projects that demand robust build and test pipelines.

AI programmingCI/CDJava
0 likes · 20 min read
SpaceX’s $60B Cursor Deal Shows AI Programming Moving Beyond Code Writing
liandk
liandk
Jun 22, 2026 · Fundamentals

Composite Pattern Explained with Code and Real‑World Scenarios

This article introduces the Composite design pattern, explains its purpose of treating leaf and container objects uniformly, shows typical tree‑structured use cases, and provides a complete Java implementation with abstract component, leaf, composite, and a test demo.

Composite PatternDesign PatternsJava
0 likes · 5 min read
Composite Pattern Explained with Code and Real‑World Scenarios
Lisa Notes
Lisa Notes
Jun 22, 2026 · Fundamentals

How to Use Java’s super Keyword to Call a Superclass Constructor

This tutorial explains how the super keyword invokes a superclass constructor—both no‑argument and parameterized—illustrates constructor chaining across inheritance hierarchies with concrete Java code examples, and highlights compilation errors when a matching superclass constructor is missing.

JavaOOPconstructor
0 likes · 9 min read
How to Use Java’s super Keyword to Call a Superclass Constructor
Tech Ocean
Tech Ocean
Jun 21, 2026 · Artificial Intelligence

Why Jack‑of‑All Agents Fail – Router Delegation and Subagents in AgentScope Java

The article explains AgentScope 2.0’s “agent‑as‑tool” philosophy, showing how a Router agent can dynamically delegate tasks to specialist ReActAgents via @Tool methods, and how HarnessAgent’s Subagent feature enables long‑running, user‑direct interactions, with concrete Java code illustrating both patterns.

AgentScopeJavaMulti-agent
0 likes · 7 min read
Why Jack‑of‑All Agents Fail – Router Delegation and Subagents in AgentScope Java
Coder Trainee
Coder Trainee
Jun 21, 2026 · Artificial Intelligence

Hands‑On Java Function Calling with Spring AI: Build an Intelligent Customer Service Bot

This article explains how Function Calling lets large language models invoke Java methods via Spring AI, walks through the four‑step workflow, shows declarative and programmatic tool definitions, and demonstrates a complete customer‑service chatbot with code examples and best‑practice guidelines.

AI integrationFunction CallingJava
0 likes · 11 min read
Hands‑On Java Function Calling with Spring AI: Build an Intelligent Customer Service Bot
Cloud Architecture
Cloud Architecture
Jun 21, 2026 · Backend Development

How to Build a Production‑Ready AI Service with Spring 7.0 and Spring AI for High‑Concurrency Microservices

This article explains how to integrate large language models into enterprise Java microservices using Spring 7.0 and Spring AI, covering architectural layers, design principles, code structure, resilience, observability, and a step‑by‑step production checklist to turn AI capabilities into a maintainable, high‑throughput service.

AIJavaMicroservices
0 likes · 38 min read
How to Build a Production‑Ready AI Service with Spring 7.0 and Spring AI for High‑Concurrency Microservices
Java Architect Handbook
Java Architect Handbook
Jun 21, 2026 · Backend Development

Why PowerJob Makes Our Project Sleep Easy: A Hands‑On Guide

This article walks through the core features of PowerJob, compares it with other Java job schedulers, and provides step‑by‑step instructions for installing, configuring, and creating tasks using both Docker and jar deployments, complete with code samples and UI screenshots.

JavaPowerJobbackend
0 likes · 14 min read
Why PowerJob Makes Our Project Sleep Easy: A Hands‑On Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 21, 2026 · Backend Development

Spring Boot + Yauaa: Ultra‑Precise Parsing of Client Device, OS, and Browser Info

This article walks through using the Yauaa library in Spring Boot 3.5.0 to extract detailed client‑side information—device class, operating system, and browser—from the User‑Agent header, covering basic bean setup, advanced cache configuration, field selection, and device‑based routing examples.

Cache ConfigurationDevice DetectionJava
0 likes · 8 min read
Spring Boot + Yauaa: Ultra‑Precise Parsing of Client Device, OS, and Browser Info
Tinker Programmer
Tinker Programmer
Jun 21, 2026 · Fundamentals

Master Java Builder Pattern and Avoid Lombok @Builder & @SuperBuilder Pitfalls

This article explains why telescoping constructors and JavaBean setters are problematic, demonstrates a hand‑written Builder implementation based on Effective Java, shows how Lombok @Builder simplifies code, and warns about two common Lombok pitfalls—default values and inheritance—while offering practical solutions.

Builder PatternDesign PatternsEffective Java
0 likes · 12 min read
Master Java Builder Pattern and Avoid Lombok @Builder & @SuperBuilder Pitfalls
java1234
java1234
Jun 21, 2026 · Artificial Intelligence

AgentScope Java 2.0 Unveiled: Major Upgrades for Production‑Ready AI Agents

The open‑source AgentScope Java framework now ships with version 2.0, introducing HarnessAgent for long‑running tasks, a Workspace‑based persistence layer, enterprise‑grade multi‑tenant isolation, streaming events, and a refactored middleware model, all illustrated with runnable Java examples and a concise feature table.

AI AgentsAgentScopeHarnessAgent
0 likes · 12 min read
AgentScope Java 2.0 Unveiled: Major Upgrades for Production‑Ready AI Agents
Lisa Notes
Lisa Notes
Jun 21, 2026 · Fundamentals

How to Use Java’s super Keyword to Access Base-Class Members

This tutorial demonstrates how the super keyword lets a subclass invoke overridden methods and access shadowed fields in its superclass, providing step‑by‑step Java code examples, execution results, and explanations of the underlying inheritance mechanics.

Javafield shadowinginheritance
0 likes · 5 min read
How to Use Java’s super Keyword to Access Base-Class Members
Tech Ocean
Tech Ocean
Jun 21, 2026 · Artificial Intelligence

How Harness Engineering Turns an Agent from Running to Staying Stable

This article explains how HarnessAgent extends a ReActAgent with engineering features such as middleware hooks, workspace sandboxing, context compression, and model fault‑tolerance to make AI agents reliable for long‑running production deployments.

AI AgentsAgentScopeHarnessAgent
0 likes · 9 min read
How Harness Engineering Turns an Agent from Running to Staying Stable
Deepin Linux
Deepin Linux
Jun 21, 2026 · Backend Development

Why Off‑Heap Memory Can Leak on Linux—and How to Avoid It

The article explains how off‑heap memory and mmap enable zero‑copy I/O for high‑performance Linux services, but because the JVM does not manage it, careless allocation or missing releases can cause off‑heap memory leaks that lead to OOM, and it provides concrete detection and mitigation techniques.

C++JavaLinux
0 likes · 24 min read
Why Off‑Heap Memory Can Leak on Linux—and How to Avoid It
Java Architect Essentials
Java Architect Essentials
Jun 20, 2026 · Backend Development

FastUtil High‑Performance Collection Best Practices: Speed Up Your Java Programs

FastUtil, an open‑source library maintained by Sebastiano Vigna, offers type‑specialized Java collections that are typically 2–5× faster and use 40–70% less memory than JDK equivalents, and this article provides detailed benchmarks, a cheat‑sheet of core types, production‑ready code snippets, Maven/Gradle setup, and a checklist of common pitfalls to help developers adopt FastUtil safely and efficiently.

CollectionsFastUtilJava
0 likes · 12 min read
FastUtil High‑Performance Collection Best Practices: Speed Up Your Java Programs
Coder Trainee
Coder Trainee
Jun 20, 2026 · Artificial Intelligence

Java RAG Tutorial: Vector Search and Knowledge‑Base Integration

This article explains how to equip a Java application with Retrieval‑Augmented Generation (RAG) so large language models can access private PDFs, Word files, and internal documents, covering the core architecture, two implementation paths using LangChain4j and Spring AI, vector‑store options, and practical tuning techniques.

JavaLangChain4jRAG
0 likes · 12 min read
Java RAG Tutorial: Vector Search and Knowledge‑Base Integration
webdream
webdream
Jun 20, 2026 · Artificial Intelligence

Building an Enterprise‑Grade RAG Knowledge Base from Scratch: Architecture, Tech Choices & Pitfalls

The article details how to construct an enterprise‑level Retrieval‑Augmented Generation (RAG) knowledge‑base for the insurance sector, covering architecture, dual‑service Java + Python design, tech selections such as MiMo LLM, BGE‑M3 embeddings, hybrid search, performance‑tuned streaming, permission models, and lessons learned.

Hybrid SearchJavaPython
0 likes · 15 min read
Building an Enterprise‑Grade RAG Knowledge Base from Scratch: Architecture, Tech Choices & Pitfalls
IT Services Circle
IT Services Circle
Jun 20, 2026 · Artificial Intelligence

How I Doubled RAG Accuracy with These Optimizations

This article walks through a complete RAG pipeline, identifying common pitfalls from document preprocessing to prompt construction, and provides concrete Python and Java examples, chunking strategies, embedding tweaks, hybrid retrieval, reranking, advanced techniques, and evaluation methods to reliably double retrieval accuracy.

Artificial IntelligenceJavaPrompt Engineering
0 likes · 35 min read
How I Doubled RAG Accuracy with These Optimizations
Lisa Notes
Lisa Notes
Jun 20, 2026 · Fundamentals

Java Variable Hiding: How Subclass Fields Mask Base Class Members

The note explains Java's variable hiding where a subclass field with the same name as a superclass field conceals the original, demonstrates it with a Father‑Son example, shows the output, and warns that such practice can hurt code readability.

JavaOOPSubclass
0 likes · 3 min read
Java Variable Hiding: How Subclass Fields Mask Base Class Members
IoT Full-Stack Technology
IoT Full-Stack Technology
Jun 20, 2026 · Backend Development

A Minimalist HTTP Client: One‑Line Requests with OKHttpUtil

OKHttpUtil wraps Square's OkHttp library to provide a lightweight, easy‑to‑use HTTP client for Java and Kotlin, automatically handling HTTP/HTTPS detection, cookies, redirects, gzip, proxy and User‑Agent configuration, with Maven coordinates, Spring Boot starter support and concise code examples for GET, POST, file upload, download and custom API wrappers.

API wrapperHTTP clientJava
0 likes · 10 min read
A Minimalist HTTP Client: One‑Line Requests with OKHttpUtil
Architect's Guide
Architect's Guide
Jun 20, 2026 · Backend Development

How to Auto‑Cancel Unpaid Orders After 30 Minutes: Design and Implementation Options

The article explains the concept of delayed tasks versus scheduled tasks and evaluates several backend solutions—including database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET, Redis key‑space notifications, and RabbitMQ delayed queues—detailing their implementations, code samples, advantages, and drawbacks for automatically cancelling orders that remain unpaid for a set period.

Delayed TaskJavaQuartz
0 likes · 17 min read
How to Auto‑Cancel Unpaid Orders After 30 Minutes: Design and Implementation Options
Linyb Geek Road
Linyb Geek Road
Jun 20, 2026 · Backend Development

Step-by-Step Guide to Building a Maven Private Repository with Nexus

This tutorial explains why a private Maven repository is useful for Java teams, walks through downloading and installing Nexus on Linux, configuring repositories, managing firewall rules, setting up anonymous access, and publishing and retrieving artifacts using Maven settings and commands.

Dependency ManagementJavaLinux
0 likes · 12 min read
Step-by-Step Guide to Building a Maven Private Repository with Nexus
Coder Trainee
Coder Trainee
Jun 19, 2026 · Artificial Intelligence

Deep Dive into Spring AI: Advanced ChatClient, Prompt Templates, and Function Calling

This article explores Spring AI's core design patterns, advanced ChatClient usage, dynamic PromptTemplate creation, few‑shot prompting, structured output parsing, and declarative function calling with @Tool annotations, providing code examples, advisor mechanisms, and testing tips for Java developers.

AI integrationChatClientFunction Calling
0 likes · 13 min read
Deep Dive into Spring AI: Advanced ChatClient, Prompt Templates, and Function Calling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 19, 2026 · Backend Development

Java Pooling Under High Concurrency: Resource Reuse and Performance Optimization

The article explains Java pooling techniques for high‑concurrency scenarios, introduces Apache Commons Pool 2, demonstrates how to configure dependencies, implement a PooledObjectFactory, create custom eviction policies and statistics, and shows a complete runnable example that highlights resource reuse and performance gains.

JavaPerformance OptimizationSpring Boot
0 likes · 8 min read
Java Pooling Under High Concurrency: Resource Reuse and Performance Optimization
liandk
liandk
Jun 19, 2026 · Fundamentals

Bridge Pattern Explained with Code and Real-World Scenarios

This article introduces the Bridge design pattern, explains its purpose of separating two independent dimensions to reduce class explosion, provides practical real‑world examples, and walks through a complete Java implementation with interface, abstract bridge, concrete classes, and a test driver.

Bridge PatternDesign PatternJava
0 likes · 5 min read
Bridge Pattern Explained with Code and Real-World Scenarios
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 19, 2026 · Artificial Intelligence

How Spring AI’s Dynamic Tool Discovery Cuts Token Usage by 34%‑64%

The article explains how Spring AI’s recursive advisors enable dynamic tool discovery, replacing the traditional all‑tools‑in‑prompt approach, thereby reducing token consumption by 34%‑64% while preserving access to hundreds of tools, and provides benchmark data, code examples, and configurable search strategies.

Dynamic Tool DiscoveryJavaLLM
0 likes · 11 min read
How Spring AI’s Dynamic Tool Discovery Cuts Token Usage by 34%‑64%
Coder Trainee
Coder Trainee
Jun 18, 2026 · Artificial Intelligence

Exploring the Java LLM Ecosystem: Build Your First AI Chat Application

This tutorial walks Java backend developers through the mature Java LLM ecosystem, comparing frameworks like Spring AI and LangChain4j, and demonstrates step‑by‑step how to create a Spring Boot application with a chat endpoint, streaming responses, and dynamic model switching among OpenAI, Tongyi Qwen, and Ollama.

JavaLLMSpring AI
0 likes · 10 min read
Exploring the Java LLM Ecosystem: Build Your First AI Chat Application
Tech Ocean
Tech Ocean
Jun 18, 2026 · Artificial Intelligence

Why ReActAgent Beats a Single LLM Call: Reasoning + Acting Loop Explained

The article breaks down the ReAct reasoning‑acting loop that powers AgentScope's ReActAgent, details its builder parameters, and compares the synchronous call() method with the streaming stream() approach, showing when each should be used for backend processing or interactive UI.

AI AgentsAgentScopeJava
0 likes · 8 min read
Why ReActAgent Beats a Single LLM Call: Reasoning + Acting Loop Explained
macrozheng
macrozheng
Jun 18, 2026 · Artificial Intelligence

Why AgentScope Java 2.0 Is Needed to Bridge the Demo‑to‑Production Gap in AI Agent Development

AgentScope Java 2.0, released in June 2026, adds native distributed deployment, multi‑tenant isolation, fine‑grained permission control, workspace‑driven state management, middleware extensibility, model fault‑tolerance and event‑stream APIs, turning demo‑only agents into production‑ready, observable, and secure AI services for enterprise Java environments.

AI AgentsAgentScopeJava
0 likes · 28 min read
Why AgentScope Java 2.0 Is Needed to Bridge the Demo‑to‑Production Gap in AI Agent Development
Tech Ocean
Tech Ocean
Jun 18, 2026 · Artificial Intelligence

Master AgentScope Java’s 5 Core Blocks: Message, Agent, Model, Memory, Tool

This article breaks down AgentScope Java's five fundamental components—Message, Agent, Model, Memory, and Tool—explaining their roles, structures, code examples, provider switching, tool definition, and state management, while highlighting concurrency pitfalls and persistence options.

AgentAgentScopeJava
0 likes · 8 min read
Master AgentScope Java’s 5 Core Blocks: Message, Agent, Model, Memory, Tool
LuTiao Programming
LuTiao Programming
Jun 17, 2026 · Backend Development

Why Salesforce’s $3.6B AI Customer Service Bet Highlights the Real Opportunity for Java Back‑End Developers

The article explains how Salesforce’s $3.6 billion acquisition of Fin signals a shift from simple chatbot answers to AI agents that execute end‑to‑end business actions, and why Java/Spring Boot developers must expose secure, auditable services rather than merely wrapping large‑model APIs.

AI Agent ArchitectureAI Customer ServiceJava
0 likes · 21 min read
Why Salesforce’s $3.6B AI Customer Service Bet Highlights the Real Opportunity for Java Back‑End Developers
Raymond Ops
Raymond Ops
Jun 17, 2026 · Databases

Redis Sentinel Mode Explained: Automatic Failure Detection and Master‑Slave Switching in Practice

This guide walks through Redis Sentinel’s architecture, explains subjective and objective down states, details the leader election and failover workflow, shows step‑by‑step configuration of a three‑node Sentinel cluster, client integration in Python and Java, and provides best‑practice recommendations, monitoring metrics, and troubleshooting tips.

ConfigurationFailoverJava
0 likes · 27 min read
Redis Sentinel Mode Explained: Automatic Failure Detection and Master‑Slave Switching in Practice
Tech Ocean
Tech Ocean
Jun 17, 2026 · Artificial Intelligence

Run Your First Java AI Agent in 5 Minutes with AgentScope

This article walks Java developers through setting up AgentScope Java 2.0, explains the core ReActAgent and HarnessAgent classes, shows how to configure a DashScope model key, and provides a complete Maven project and code example that streams a typed‑out response from the AI agent.

AI AgentAgentScopeDashScope
0 likes · 11 min read
Run Your First Java AI Agent in 5 Minutes with AgentScope
liandk
liandk
Jun 17, 2026 · Fundamentals

Prototype Pattern Explained with Code and Real‑World Scenarios

This article introduces the Prototype design pattern, explains its purpose of cloning existing objects to avoid costly construction, illustrates practical scenarios such as product templates and game asset generation, provides a complete Java shallow‑copy example, and highlights common pitfalls and differences from the Factory pattern.

CloneableDesign PatternsJava
0 likes · 4 min read
Prototype Pattern Explained with Code and Real‑World Scenarios
IoT Full-Stack Technology
IoT Full-Stack Technology
Jun 17, 2026 · Backend Development

When Java Streams Crash: A Real‑World Performance Disaster

A production outage caused by a Java Stream pipeline processing one million orders revealed massive memory overhead and CPU‑bound garbage collection, prompting a benchmark that showed a handcrafted for‑loop to be up to twenty times faster and far more memory‑efficient.

Garbage CollectionJavaMemory
0 likes · 10 min read
When Java Streams Crash: A Real‑World Performance Disaster
java1234
java1234
Jun 17, 2026 · Artificial Intelligence

Spring AI 2.0 GA: Native Java AI Development with Spring Boot 4 Integration

Spring AI 2.0 reaches GA, offering a production‑grade, Java‑first AI development path tightly integrated with Spring Boot 4.x, Spring Framework 7.0, and the Model Context Protocol, while introducing upgraded agent tooling, Jackson 3, JSpecify annotations, and streamlined provider SDKs.

AgentJackson 3Java
0 likes · 6 min read
Spring AI 2.0 GA: Native Java AI Development with Spring Boot 4 Integration
Java Tech Workshop
Java Tech Workshop
Jun 17, 2026 · Backend Development

Step‑by‑Step Source Code Walkthrough of Spring’s Singleton Bean Creation

This article dissects Spring’s singleton bean creation process, explaining the three‑level cache system, the doGetBean and doCreateBean workflows, circular‑dependency handling, proxy generation timing, and common pitfalls such as multithreaded duplicate creation and hot‑deployment cache issues.

Bean LifecycleCacheCircular Dependency
0 likes · 11 min read
Step‑by‑Step Source Code Walkthrough of Spring’s Singleton Bean Creation
21CTO
21CTO
Jun 17, 2026 · Fundamentals

Project Valhalla Hits JDK 28: Preview of Value Types Arrives

Project Valhalla's JEP 401, introducing value classes and objects, merges into the OpenJDK mainline as a preview feature in JDK 28, involving 1,816 files and over 197,000 new lines, with a cautious rollout timeline and notable design trade‑offs for Java performance.

JEP 401JavaOpenJDK
0 likes · 7 min read
Project Valhalla Hits JDK 28: Preview of Value Types Arrives
Coder Life Journal
Coder Life Journal
Jun 17, 2026 · Fundamentals

Why HashMap Is Not Thread‑Safe: A Deep Dive into the Source Code

The article explains how HashMap can enter an infinite loop, lose data, or corrupt entries when accessed concurrently, illustrates the root causes with JDK 1.7 and 1.8 source code, compares alternative thread‑safe maps, and shows how to answer this classic interview question.

ConcurrentHashMapData RaceHashMap
0 likes · 7 min read
Why HashMap Is Not Thread‑Safe: A Deep Dive into the Source Code
LuTiao Programming
LuTiao Programming
Jun 16, 2026 · Backend Development

Why AI‑Generated Java Code Is Riskier Without a Gatekeeper

As AI coding tools like Claude Code, Cursor and Codex can automatically edit multiple files, run commands, and modify production configurations in Spring Boot projects, the real danger lies in the lack of automated gatekeeping that enforces engineering rules and prevents unintended side effects.

AI codingCode safetyDevOps
0 likes · 18 min read
Why AI‑Generated Java Code Is Riskier Without a Gatekeeper
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 16, 2026 · Backend Development

Stop Overusing ‘new’: Four Design Patterns That Separate Junior from Senior Developers

The article explains why indiscriminate use of the Java new operator leads to duplicated configuration, hidden complexity, and performance problems, and demonstrates how Factory, Builder, Object‑Pool, and Prototype patterns—illustrated with Spring Boot 3.5.0 code—provide clean, maintainable alternatives that distinguish junior from senior developers.

Builder PatternDesign PatternsFactory Pattern
0 likes · 19 min read
Stop Overusing ‘new’: Four Design Patterns That Separate Junior from Senior Developers
liandk
liandk
Jun 16, 2026 · Fundamentals

Builder Pattern Explained: Simple Theory, Real‑World Scenarios & Java Code

This article introduces the Builder design pattern, illustrates its concept with everyday analogies like milk‑tea making, and provides a complete Java example that assembles a computer through step‑by‑step builders, followed by a summary of typical business use cases and a tip on avoiding confusion with the Factory pattern.

Builder PatternDesign PatternsJava
0 likes · 5 min read
Builder Pattern Explained: Simple Theory, Real‑World Scenarios & Java Code
Architect Chen
Architect Chen
Jun 16, 2026 · Backend Development

A Complete Illustrated Guide to Java Concurrency for High‑Performance Architecture

This article provides a thorough, image‑rich overview of Java concurrency, covering the differences between concurrency and parallelism, thread lifecycle states, various ways to create threads, thread‑pool design and workflow, the Java Memory Model, and essential JUC utilities, all illustrated with code snippets and diagrams.

ConcurrencyJUCJava
0 likes · 8 min read
A Complete Illustrated Guide to Java Concurrency for High‑Performance Architecture
Architect's Guide
Architect's Guide
Jun 16, 2026 · Backend Development

How to Insert 300,000 Records in 13 Seconds with MyBatis and JDBC

The article compares several ways of inserting 300,000 MySQL rows—single‑row loops, an un‑batched MyBatis attempt that hits the max_allowed_packet limit, and a tuned batch strategy that commits every 1,000 rows—showing how the optimized batch reduces the runtime from hours to just 13 seconds and summarizing best‑practice tips.

Batch InsertJDBCJava
0 likes · 13 min read
How to Insert 300,000 Records in 13 Seconds with MyBatis and JDBC
liandk
liandk
Jun 16, 2026 · Fundamentals

Understanding the Abstract Factory Pattern: Theory, Real‑World Scenarios, and Java Code

The article explains how the Abstract Factory pattern creates whole families of related objects—contrasting it with the Factory Method—illustrates practical scenarios such as phone accessories, UI themes, and payment suites, provides step‑by‑step Java code, lists common use cases, and discusses its limitations.

Abstract FactoryDesign PatternsFactory Method
0 likes · 6 min read
Understanding the Abstract Factory Pattern: Theory, Real‑World Scenarios, and Java Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 16, 2026 · Backend Development

Avoid OOM: Stream Massive Excel Files with Minimal Memory Using Excel‑Streaming‑Reader

This article explains how to prevent out‑of‑memory errors when importing huge Excel files in Java by using the open‑source excel‑streaming‑reader library, showing Maven setup, streaming code examples, memory‑saving configurations for shared strings and comments, and tips for handling extremely large workbooks.

Apache POIExcelJava
0 likes · 8 min read
Avoid OOM: Stream Massive Excel Files with Minimal Memory Using Excel‑Streaming‑Reader
Cloud Architecture
Cloud Architecture
Jun 15, 2026 · Backend Development

Trillion‑Message Engine Showdown: RabbitMQ vs Kafka Architecture, Performance and Cloud‑Native Pitfalls

An experienced architect compares RabbitMQ and Kafka across core protocols, storage, replication, consumption semantics, and real‑world production designs, offering Java 17/Spring Boot code, cloud‑native deployment tips, observability, and a decision framework that matches messaging patterns to business requirements.

Event StreamingJavaKafka
0 likes · 45 min read
Trillion‑Message Engine Showdown: RabbitMQ vs Kafka Architecture, Performance and Cloud‑Native Pitfalls
Top Architect
Top Architect
Jun 15, 2026 · Backend Development

How to Convert DOCX to PDF in Spring Boot Using docx4j (Open‑Source Solution)

The article explains how to implement a pure‑Java DOCX‑to‑PDF conversion service in Spring Boot with docx4j, compares it against alternatives such as Apache POI+iText, LibreOffice+JODConverter and Aspose.Words, and provides step‑by‑step code for Maven dependencies, a utility class with font mapping to avoid Chinese garbling, a controller endpoint, and platform‑specific font‑installation fixes for Windows and Linux.

JavaMavenPDF conversion
0 likes · 12 min read
How to Convert DOCX to PDF in Spring Boot Using docx4j (Open‑Source Solution)