Tagged articles

Java

5000 articles · Page 6 of 50
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 codingCLIDependency Injection
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.

JavaLogbackSpring Boot
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.

CloneFinalizeJava
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.

JavaRabbitMQbasic.qos
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/CDCursor
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 PatternsFile System
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.

InheritanceJavaOOP
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 IntegrationBackendFunction Calling
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.

AIBackendJava
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.

BackendJavaPowerJob
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.

InheritanceJavafield shadowing
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.

EmbeddingJavaPython
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 IntelligenceEmbeddingJava
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 TaskJavaRabbitMQ
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.

JavaLinuxMaven
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.

ConfigurationJavaPython
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.

JavaMemoryPerformance
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 LifecycleJavaSpring
0 likes · 11 min read
Step‑by‑Step Source Code Walkthrough of Spring’s Singleton Bean Creation
CodeSmart Hoops
CodeSmart Hoops
Jun 17, 2026 · Backend Development

Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3

This guide demonstrates how to set up a Spring Boot 3.x project with MyBatis‑Plus, configure Maven dependencies, H2 database, and JPA, then write comprehensive JUnit 5 tests covering CRUD, LambdaQueryWrapper queries, pagination, logical deletion, and automatic timestamp filling, with step‑by‑step commands to run the tests.

JUnit 5JavaMyBatis-Plus
0 likes · 20 min read
Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3
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 401JavaMemory Optimization
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.

JUCJavaJava Memory Model
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 PatternsJava
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.

Cloud NativeEvent StreamingJava
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)
Java Tech Enthusiast
Java Tech Enthusiast
Jun 15, 2026 · Backend Development

Spring Boot Interceptor vs Filter: 5 Pitfalls and Choosing the Right One for Login Checks

Spring Boot’s Filter and Interceptor can both intercept requests, but developers often misuse them; this article explains five frequent traps—null autowiring in Filters, execution order mistakes, @Value timing issues in Interceptors, Swagger blocking, and exception handling—offering concrete fixes and a decision guide.

InterceptorJavaLogin Validation
0 likes · 13 min read
Spring Boot Interceptor vs Filter: 5 Pitfalls and Choosing the Right One for Login Checks
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 15, 2026 · Backend Development

14 Real-World Scenarios Highlighting Core Distributed Caching Issues in Spring Boot

This article presents fourteen practical scenarios covering the design, pitfalls, strategies, and implementation details of distributed caching in Spring Boot, including cache breakdown prevention, write‑through vs. write‑behind, eviction policies, negative caching, secondary caches, cache‑aside pattern, warming, monitoring, consistency, and custom key generation, all illustrated with concrete code examples.

Cache EvictionJavaRedis
0 likes · 17 min read
14 Real-World Scenarios Highlighting Core Distributed Caching Issues in Spring Boot
Java Architect Handbook
Java Architect Handbook
Jun 15, 2026 · Industry Insights

Shocking Bank Programmer Salaries Revealed

This article analyzes the rapidly growing demand for IT positions in Chinese banks, categorizes the banks, details typical roles, written tests, interview formats, and provides concrete salary ranges for each institution, offering a comprehensive view of the banking tech job market.

Bank ITChinaJava
0 likes · 14 min read
Shocking Bank Programmer Salaries Revealed
Su San Talks Tech
Su San Talks Tech
Jun 15, 2026 · Artificial Intelligence

How I Doubled RAG Accuracy with Targeted Optimizations

This article walks through a comprehensive, step‑by‑step analysis of why RAG pipelines often underperform and presents concrete optimizations—including OCR preprocessing, table extraction, metadata enrichment, recursive chunking, embedding fine‑tuning, hybrid vector‑keyword retrieval, reranking, prompt templates, and a production‑grade Java implementation—backed by code snippets, benchmark figures, and evaluation metrics.

ChunkingEmbeddingHybrid Retrieval
0 likes · 36 min read
How I Doubled RAG Accuracy with Targeted Optimizations
IoT Full-Stack Technology
IoT Full-Stack Technology
Jun 15, 2026 · Backend Development

Quickly Secure Spring Boot APIs with RSA Encryption

This article walks through the fundamentals of RSA encryption, illustrates two communication scenarios, and provides a step‑by‑step guide to add RSA‑based request/response encryption to a Spring Boot project—including Maven setup, annotation usage, key configuration, front‑end JavaScript encryption, testing, and common pitfalls.

API EncryptionBackendJSEncrypt
0 likes · 11 min read
Quickly Secure Spring Boot APIs with RSA Encryption
Programmer XiaoFu
Programmer XiaoFu
Jun 15, 2026 · Backend Development

Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration

The article analyzes why a basic Redis mutex lock can cause thread blocking, latency spikes, and service collapse under high concurrency, and compares it with logical expiration and never‑expire with proactive updates, explaining their trade‑offs and how to choose the right cache‑breakdown mitigation strategy.

JavaLogical ExpirationNever Expire
0 likes · 12 min read
Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 15, 2026 · Backend Development

Zero‑Intrusion Spring Boot Unified Response: 4 Low‑Level Solutions

The article explains why inconsistent API responses hurt front‑end/back‑end projects, introduces a unified result object, and demonstrates four zero‑intrusion, low‑level techniques—custom ResponseBodyAdvice, return‑value handler, HandlerMethod adapter, and message converter—each with code samples and verification screenshots.

Custom Message ConverterHandlerMethodReturnValueHandlerJava
0 likes · 9 min read
Zero‑Intrusion Spring Boot Unified Response: 4 Low‑Level Solutions
Tech Musings
Tech Musings
Jun 14, 2026 · Backend Development

Does Netty’s io_uring Make the 2× CPU Thread Rule Obsolete?

A benchmark on an 8‑core Linux 6.6 system shows that switching Netty from epoll to io_uring lets a half‑sized thread pool achieve 3 % higher throughput, more than double per‑thread efficiency, and a 67 % reduction in CPU migrations, challenging the traditional rule of using twice‑the‑core thread counts.

EpollJavaNetty
0 likes · 21 min read
Does Netty’s io_uring Make the 2× CPU Thread Rule Obsolete?
Architect's Tech Stack
Architect's Tech Stack
Jun 14, 2026 · Backend Development

Why Quarkus Can Outrun Spring Boot: Launching Apps in Under 0.002 Seconds

The article compares Spring Boot and Quarkus, explaining how Quarkus’s build‑time optimizations, native image support, and container‑first design dramatically reduce startup time and memory usage, while also discussing development experience, extension mechanisms, and the trade‑offs involved in adopting the framework.

JavaKubernetesMicroProfile
0 likes · 14 min read
Why Quarkus Can Outrun Spring Boot: Launching Apps in Under 0.002 Seconds
liandk
liandk
Jun 14, 2026 · Fundamentals

Factory Method Pattern: Clear Explanation, Code Example, and Real-World Scenarios

This article explains the Factory Method design pattern, illustrates its core principle of separating object creation from business logic, presents everyday analogies, and provides a complete Java implementation with abstract product, concrete products, abstract factory, concrete factories, and a test driver.

Design PatternJavaObject Creation
0 likes · 4 min read
Factory Method Pattern: Clear Explanation, Code Example, and Real-World Scenarios
Architect's Guide
Architect's Guide
Jun 14, 2026 · Cloud Native

18 Visual Guides to Mastering Java Containerization Best Practices

This guide walks through choosing base images, JDK vs JRE, Oracle versus OpenJDK, JVM implementations, signal handling for graceful shutdown, memory‑limit adaptation across JDK versions, DNS caching behavior, and GraalVM native compilation, providing concrete Dockerfile examples, benchmark results, and actionable recommendations for Java containerization.

DockerGraalVMGraceful Shutdown
0 likes · 24 min read
18 Visual Guides to Mastering Java Containerization Best Practices
Java Tech Workshop
Java Tech Workshop
Jun 14, 2026 · Backend Development

Spring Bean Scopes: 5 Types, Common Pitfalls and Concurrency Gotchas

The article explains the five Spring Bean scopes, clarifies that scope only controls instance count and not thread safety, and walks through real‑world concurrency bugs such as mutable singleton fields, prototype beans losing their prototype nature, and request‑scoped beans failing in async threads, offering concrete fixes and usage recommendations.

Bean ScopeJavaSpring
0 likes · 10 min read
Spring Bean Scopes: 5 Types, Common Pitfalls and Concurrency Gotchas
Java Tech Enthusiast
Java Tech Enthusiast
Jun 13, 2026 · Backend Development

MyBatis-Plus vs MyBatis-Flex: Which One Is Better?

This article compares MyBatis-Plus and MyBatis-Flex across eight dimensions—including design philosophy, development efficiency, query flexibility, performance, database support, advanced features, dependency weight, and community ecosystem—to help developers choose the most suitable persistence framework for their projects.

JavaMyBatis-FlexMyBatis-Plus
0 likes · 18 min read
MyBatis-Plus vs MyBatis-Flex: Which One Is Better?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 13, 2026 · Backend Development

10 Fatal @Transactional Mistakes in Spring Boot (The Last One Is Critical)

This article examines ten common pitfalls when using Spring Boot's @Transactional annotation, explains why each issue occurs—from self‑invocation and private methods to swallowed exceptions, read‑only settings, long transactions, lock interactions, and deadlocks—and provides concrete code examples and three‑step solutions to avoid them.

@TransactionalBackend DevelopmentJava
0 likes · 16 min read
10 Fatal @Transactional Mistakes in Spring Boot (The Last One Is Critical)
liandk
liandk
Jun 13, 2026 · Fundamentals

Singleton Pattern: Simple Explanation, Java Code Samples, and Real‑World Use Cases

The article explains the Singleton pattern—ensuring a class has only one global instance—to save resources and avoid conflicts, illustrates two Java implementations (eager and lazy), and lists typical scenarios such as logging utilities, connection pools, global configuration, and exclusive resources.

Design PatternEager InitializationJava
0 likes · 4 min read
Singleton Pattern: Simple Explanation, Java Code Samples, and Real‑World Use Cases
macrozheng
macrozheng
Jun 13, 2026 · Backend Development

How MybatisPlus Pro Supercharges CRUD Development Efficiency

The article explains how MybatisPlus Pro extends MybatisPlus to eliminate repetitive Service and Controller code, provides a ready‑to‑use BaseController, automatic QueryWrapper generation, and deepens the understanding of its dynamic proxy, interceptor chain and SQL injection mechanisms, while also outlining its strengths, limitations, suitable scenarios and common pitfalls.

CRUDCode GenerationJava
0 likes · 22 min read
How MybatisPlus Pro Supercharges CRUD Development Efficiency
Java Tech Workshop
Java Tech Workshop
Jun 13, 2026 · Backend Development

Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor

The article compares Spring's three dependency‑injection styles—field, setter, and constructor—showing code, execution order, source‑code mechanics, risks such as null‑pointer windows and reflection tampering, and concludes that constructor injection (preferably with Lombok @RequiredArgsConstructor) is the production‑grade choice.

Constructor InjectionDependency InjectionField Injection
0 likes · 10 min read
Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor
Architect's Tech Stack
Architect's Tech Stack
Jun 12, 2026 · Backend Development

Why Manual JAR Deployment Is Outdated: Embrace Dynamic Hot‑Deployment Plugins

The article explains why rebuilding and redeploying a whole JAR for small rule or script changes is inefficient, distinguishes development‑time hot reload from production hot deployment, and shows how a plugin architecture using URLClassLoader and ServiceLoader provides granular, rollback‑friendly, and extensible updates while warning of classloader leaks and dependency conflicts.

Hot DeploymentJavaServiceLoader
0 likes · 8 min read
Why Manual JAR Deployment Is Outdated: Embrace Dynamic Hot‑Deployment Plugins
Java Tech Enthusiast
Java Tech Enthusiast
Jun 12, 2026 · Artificial Intelligence

AgentScope Java 2.0 Released: Enterprise‑Ready AI Agent Framework Explained

AgentScope Java 2.0 launches to solve the “Demo Curse” by adding native distributed deployment, full‑stack multi‑tenant isolation, fine‑grained permission control, a file‑driven Workspace, middleware extensions and robust model fault‑tolerance, turning prototype agents into production‑grade services.

AIAgentFrameworkAgentScope
0 likes · 26 min read
AgentScope Java 2.0 Released: Enterprise‑Ready AI Agent Framework Explained
Top Architect
Top Architect
Jun 11, 2026 · Backend Development

How to Speed Up Large-Scale Queries with MyBatisPlus

The article analyzes why conventional MyBatisPlus queries become slow and memory‑intensive when handling millions of rows, then demonstrates three alternatives—regular pagination, stream query, and cursor query—showing their implementation, trade‑offs, and practical tips for avoiding OOM and improving performance.

CursorJavaLarge Data
0 likes · 10 min read
How to Speed Up Large-Scale Queries with MyBatisPlus