Tagged articles
Java backend
36 articles · Page 1 of 1
This article explains three Spring mechanisms for asynchronous streaming responses—ResponseBodyEmitter for progressive data sending, SseEmitter for server-sent events with auto-reconnect, and StreamingResponseBody for large file streaming—with code examples and use cases for each.
Java backendResponseBodyEmitterSSE
0 likes · 11 min read

This article explains how frequent G1 Mixed GC pauses, not Redis slowness, cause distributed lock waits by stalling lock-holding threads, and details a six-step troubleshooting process linking GC logs, business logs, and heap analysis to identify large objects, compensation tasks, and unbounded local caches as root causes.
Distributed LocksG1 GCHumongous Objects
0 likes · 19 min read

The article explains why Spring AI Alibaba's maintenance pause signals mission completion, not abandonment, as Spring AI now natively supports Chinese models via OpenAI-compatible APIs. It argues Java backends remain essential by shifting from writing APIs to organizing capabilities for AI agents through MCP, emphasizing deep business knowledge as the irreplaceable asset.
AI agentsAPI DesignBusiness Logic
0 likes · 9 min read

Java developers should move beyond using GPT for code generation and instead expose existing Spring Boot services as secure, auditable AI tools, covering permission checks, data desensitization, tool descriptions, system prompts, and comprehensive logging to safely integrate GPT into business workflows.
AI Tool CallingGPTJava backend
0 likes · 17 min read

This guide walks through building a complete global exception handling system in SpringBoot using @ControllerAdvice and @ExceptionHandler, covering unified response structures, custom business exceptions, validation error handling, logging best practices, and security considerations to keep controllers clean and maintainable.
@ControllerAdvice@ExceptionHandlerBest Practices
0 likes · 9 min read

This article demonstrates how the Qoder AI plugin for JetBrains IDEA can transform lengthy backend tasks—such as deep‑pagination optimization and legacy code refactoring—into rapid, automated workflows, cutting development time from days to under ten minutes while preserving code quality.
AI codingIDEAJava backend
0 likes · 18 min read

This article explains Spring AI's architecture, including strategy, template, advisor, function‑calling, and RAG patterns, and provides a step‑by‑step tutorial for building a zero‑cost, privacy‑preserving AI assistant with the local Ollama model in a Spring Boot project.
ChatClientJava backendRAG pipeline
0 likes · 14 min read

This tutorial demonstrates how to implement global API encryption in Spring Boot using @ControllerAdvice and ResponseBodyAdvice with AES, covering step-by-step code, three critical pitfalls to avoid, and performance benchmarks showing AES adds only ~6ms overhead per request.
@ControllerAdviceAES encryptionAPI Security
0 likes · 11 min read

This article shares a hands‑on experience of applying SpecKit and AI‑assisted coding to a mature Java backend, detailing the spec‑driven workflow, tool selection, environment setup, step‑by‑step commands, concrete examples, observed benefits, encountered challenges, and practical lessons for future projects.
AI codingDevOpsJava backend
0 likes · 16 min read

This article details how Ant Group’s international credit team applied AI‑assisted code generation using CodeFuse plugins and custom prompts to automatically transform system specifications into Java façade, persistence, and business‑logic code, achieving a 40% reduction in coding effort across multiple projects.
AI codingJava backendautomation
0 likes · 54 min read

This article analyzes a severe N+1 query performance disaster in a Java Spring Boot project, explains why the traditional recursive approach is slow, and presents a production‑tested solution that reduces database calls to one, uses O(n) tree construction, and adds multi‑level caching to achieve a 100‑fold speedup.
Java backendN+1 QuerySpring Cache
0 likes · 24 min read

This article explains how to use Spring State Machine to model and control order lifecycle transitions in an e‑commerce system, covering core concepts, configuration, listeners, service integration, controller endpoints, and visual results for robust backend state management.
Java backendOrder WorkflowSpring Boot
0 likes · 10 min read

This article compares Spring Boot 3's StreamingResponseBody and SseEmitter approaches for server‑side streaming, providing complete backend and frontend implementations, code samples, and performance considerations to help developers choose the right solution for real‑time data delivery.
Java backendServer-Sent EventsSseEmitter
0 likes · 8 min read

This article explains how to design and implement a generic asynchronous processing SDK for Java backend services, covering its purpose, advantages, underlying principles, component choices, database schema, configuration, usage patterns, and best‑practice notes, with code examples and diagrams.
Asynchronous ProcessingConfigurationJava backend
0 likes · 9 min read

This article walks through building a reusable EasyExcel wrapper for Spring Boot, covering environment setup, step‑by‑step usage, full source code, common pitfalls like date formatting and POI version conflicts, and practical solutions to ensure reliable Excel import and export.
EasyExcelExcel ExportJava backend
0 likes · 20 min read

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

This article demonstrates multiple ways to handle file uploads in Spring Boot 3, covering basic @RequestParam usage, Map and object binding, jakarta.servlet.http.Part, and @RequestPart for combined JSON and file data, complete with code snippets and practical examples.
@RequestPartJava backendMultipartFile
0 likes · 7 min read

The article details a performance optimization case where interface latency was diagnosed with Pfinder and UMP, revealing excessive RPC calls and database queries, and then improved by replacing inefficient list operations with Set-based logic and introducing JSF asynchronous calls, cutting response times from seconds to milliseconds.
JSF asynchronousJava backendPfinder
0 likes · 5 min read

This article analyzes a severe service‑availability drop caused by Log4j2 asynchronous logging bottlenecks, explains how configuring log4j2.asyncQueueFullPolicy=Discard and log4j2.discardThreshold=ERROR mitigates the issue, details the investigation steps, performance tests, and provides practical recommendations for robust backend logging.
Java backendLog4j2asynchronous logging
0 likes · 15 min read

This article compares Java backend development with game engine programming, explains why Unreal Engine (C++) and Unity (C#) dominate modern games, outlines official Unreal learning paths, and introduces hot‑update techniques using Blueprints, USharp and Lua for dynamic game updates.
Java backendLearning ResourcesLua
0 likes · 8 min read


JavaEdgeMay 21, 2024 · Backend Development
This guide explains the two integration mechanisms ShardingSphere provides for Spring—namespace‑based XML schema extension and custom starter for Spring Boot—detailing the required classes, configuration files, bean definitions, and annotations to enable sharding, read‑write splitting, and encryption in a Java backend.
AutoConfigurationJava backendShardingSphere
0 likes · 14 min read

This article explains Apollo’s distributed configuration center, its overall architecture, the use of HTTP long polling with Spring’s DeferredResult, code examples for listening and publishing config changes, and strategies to ensure message reliability across multiple nodes.
ApolloDistributed ConfigurationJava backend
0 likes · 11 min read

This article walks through the step‑by‑step JDBC query process, explains why wrapping JDBC in a framework like MyBatis is beneficial, analyzes MyBatis’s core components and execution flow, and presents five practical optimizations—from connection pooling to dynamic SQL and result caching—to improve Java backend performance.
Connection PoolingJDBCJava backend
0 likes · 35 min read

This article walks through four audit implementation strategies, provides the SQL schema and Java SpringBoot controller for an audit feature, shows how to integrate it with a Vue front‑end including file upload handling, and offers complete code snippets for both back‑end and front‑end components.
File UploadJava backendSpringBoot
0 likes · 26 min read

This article presents a complete guide to building a data‑visualization big‑screen dashboard, covering effect screenshots, requirement specifications, overall architecture, development environment setup, JSON library configuration, code structure, startup commands, browser access, and source‑code acquisition.
DashboardEChartsJSON
0 likes · 4 min read

This article explains what SQL injectors are in MyBatis‑Plus, lists the built‑in extended injectors, shows how to configure them globally, demonstrates custom mapper creation, provides complete code examples and test cases, and guides readers through building their own SQL injector for full‑field updates and batch operations.
Custom MapperJava backendMyBatis Plus
0 likes · 9 min read

This article explains step‑by‑step how Spring MVC handles an incoming HTTP request, detailing the roles of DispatcherServlet, HandlerMapping, HandlerAdapter, argument and return value resolvers, and ViewResolver, and includes key code excerpts that illustrate the matching and initialization processes.
DispatcherServletJava backendRequest Handling
0 likes · 7 min read

This article provides a comprehensive overview of Spring MVC request‑mapping annotations, core Spring Bean annotations, dependency‑injection and scope configurations, container setup annotations, and essential Spring Boot annotations, each illustrated with clear code examples and usage tips.
AnnotationsJava backendSpring
0 likes · 16 min read

On the sixth anniversary of GraphQL Java, the Spring community launched the Spring GraphQL project, integrating GraphQL Java into the Spring ecosystem, aiming to simplify GraphQL adoption for Java developers and spark broader use of GraphQL in China.
GraphQL JavaJava backendSpring Framework
0 likes · 5 min read

This article explains why traditional session handling fails in distributed environments, compares client‑side storage, session replication, sticky sessions, and centralized management, and provides a practical guide to implementing reliable session consistency using Spring Session with Redis, including configuration and code examples.
Java backendSession ManagementSpring Session
0 likes · 10 min read

This article investigates intermittent HTTPS certificate validation failures in containerized Java services, detailing the TLS handshake process, certificate chain verification, and how a disabled Server Name Indication extension causes clients to receive incorrect certificates during multi-domain server deployments.
Container DeploymentHTTPS troubleshootingJSSE
0 likes · 10 min read

Rod Johnson, a music PhD turned software visionary, founded the Spring framework to simplify Java EE, championing the 'don’t reinvent the wheel' principle; his journey—from the Interface21 prototype to Spring’s rapid evolution, corporate acquisitions, and lasting influence on modern backend development—is chronicled here.
Java backendRod JohnsonSpring Framework
0 likes · 13 min read

This article explains how IDEA REST Client provides all the features of Postman while adding environment configuration, request history, scriptable assertions, and global variable support, making it a more integrated and efficient tool for Java backend API debugging and testing.
API testingHTTP ClientIDEA REST Client
0 likes · 8 min read

This article details NetEase Kaola’s journey from a monolithic Java backend to a micro‑service architecture powered by Dubbo, covering service decomposition, circuit breaking, rate limiting, comprehensive monitoring, API gateway, multi‑language support, registration‑center redesign, and future plans for dual‑data‑center deployment and service‑mesh adoption.
DubboJava backendmicroservices
0 likes · 16 min read

This article guides Java backend developers through the fundamentals of Spring IoC and DI, illustrating three practical learning routes—from simple BeanFactory containers to advanced ApplicationContext and WebApplicationContext implementations—using diagrams, code examples, and concise explanations to demystify the core container.
ApplicationContextBeanFactoryIoC
0 likes · 12 min read

This guide explains how to configure remote debugging for Tomcat 7 on a CentOS 6.5 server using IntelliJ IDEA, covering the necessary changes to catalina.sh, IDEA remote server settings, connection steps, troubleshooting tips, and verification of a successful debug session.
CentOSIntelliJ IDEAJava backend
0 likes · 4 min read
