Tagged articles

Spring

1809 articles · Page 2 of 19
Top Architect
Top Architect
Feb 4, 2026 · Backend Development

Build a Robust Asynchronous Processing SDK with Spring, Kafka and MySQL

This article introduces a generic asynchronous processing SDK for Java back‑ends, explaining its design principles, advantages, component architecture, database schema, configuration via Apollo, usage steps, and practical demonstrations, while providing complete code snippets and a GitHub repository for reference.

DatabaseJavaKafka
0 likes · 12 min read
Build a Robust Asynchronous Processing SDK with Spring, Kafka and MySQL
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2026 · Backend Development

Mastering Spring Parameter Validation: A Flexible SpEL‑Based Validator

This article introduces a powerful, extensible Spring validation component built on SpEL that handles simple annotations, enum checks, multi‑field logic, and Spring Bean integration, providing step‑by‑step setup, usage examples, custom constraints, and performance considerations for Java backend developers.

JavaSpELSpring
0 likes · 11 min read
Mastering Spring Parameter Validation: A Flexible SpEL‑Based Validator
Java Companion
Java Companion
Jan 30, 2026 · Backend Development

When @Transactional and TransactionTemplate Clash: How to Choose the Right Spring Transaction Management

This article examines Spring's three transaction management options—@Transactional, TransactionTemplate, and TransactionManager—explaining their mechanisms, common pitfalls such as internal method calls and timeout settings, and provides guidance on when to use each approach with concrete code examples.

@TransactionalSpringTransaction
0 likes · 12 min read
When @Transactional and TransactionTemplate Clash: How to Choose the Right Spring Transaction Management
Selected Java Interview Questions
Selected Java Interview Questions
Jan 27, 2026 · Backend Development

Why Does @Transactional(REQUIRES_NEW) Still Roll Back Your Audit Log?

When a Spring @Transactional method with REQUIRES_NEW fails to persist audit logs after a rollback, the issue often stems from misconfigured rollback rules, caught exceptions, self‑invocation, non‑public or final methods, or incorrect propagation settings, all of which prevent the new transaction from committing.

@TransactionalExceptionHandlingJava
0 likes · 7 min read
Why Does @Transactional(REQUIRES_NEW) Still Roll Back Your Audit Log?
Java Companion
Java Companion
Jan 17, 2026 · Backend Development

6 Ways to Overcome the Limits of @Transactional in Spring

The article examines five scenarios where Spring's @Transactional annotation falls short—stock shortage, MQ messaging, batch processing, logging, and isolation/timeout settings—and demonstrates six practical techniques, including programmatic transactions, parameter tuning, transaction synchronizers, event listeners, manual transaction control, and propagation strategies, all backed by runnable demo code.

JavaSpringSpringBoot
0 likes · 19 min read
6 Ways to Overcome the Limits of @Transactional in Spring
SpringMeng
SpringMeng
Jan 14, 2026 · Interview Experience

How a Top Tech Candidate Secured an Immediate Offer: My Recent Interview Experience

After interviewing 150 candidates in two months, I finally met a developer whose resume perfectly matched our stack, demonstrated deep Java, SpringAI, and AI‑coding tool expertise, answered extensive technical questions ranging from SQL optimization to micro‑services, and received an immediate offer with a competitive salary package.

AISpringVue
0 likes · 8 min read
How a Top Tech Candidate Secured an Immediate Offer: My Recent Interview Experience
JavaGuide
JavaGuide
Jan 13, 2026 · Backend Development

Claude Code Generates Unexpected Bugs: 4 Real-World Spring Pitfalls and Fixes

During a Spring‑based interview platform project, the author discovered four typical bugs introduced by Claude Code—transactional self‑invocation loss, AI‑generated NullPointerExceptions, async task failures after entity deletion, and Redis Stream message buildup—and explains the root causes and concrete remediation steps.

@TransactionalAI code generationBug debugging
0 likes · 11 min read
Claude Code Generates Unexpected Bugs: 4 Real-World Spring Pitfalls and Fixes
Java Web Project
Java Web Project
Jan 13, 2026 · Backend Development

Mastering Spring 6 & Boot 3: Virtual Threads, Declarative HTTP, GraalVM Native Images, and Advanced Monitoring

This article walks through Spring 6’s core upgrades—including JDK 17 baseline, Project Loom virtual threads, @HttpExchange declarative clients, RFC 7807 ProblemDetail handling, GraalVM native‑image compilation, and Micrometer‑Prometheus monitoring—showing concrete code, performance numbers, migration steps, and real‑world e‑commerce use cases.

GraalVMHTTP ClientMonitoring
0 likes · 8 min read
Mastering Spring 6 & Boot 3: Virtual Threads, Declarative HTTP, GraalVM Native Images, and Advanced Monitoring
Top Architect
Top Architect
Jan 12, 2026 · Backend Development

How to Build a Robust Asynchronous Processing SDK with Spring, Kafka, and XXL‑Job

This article explains the design and implementation of a generic asynchronous processing SDK for Java, covering its purpose, advantages, core principles, component choices, design patterns, configuration via Apollo, usage steps, safety considerations, and provides complete SQL and Spring configuration examples along with a GitHub repository link.

Design PatternsJavaKafka
0 likes · 11 min read
How to Build a Robust Asynchronous Processing SDK with Spring, Kafka, and XXL‑Job
Java Web Project
Java Web Project
Jan 11, 2026 · Backend Development

Why Your Spring @Transactional Fails: 7 Common Pitfalls and How to Fix Them

This article analyzes seven typical reasons why Spring transactions become ineffective or fail to roll back—such as wrong method visibility, final modifiers, self‑invocation, unmanaged beans, multithreading, non‑transactional tables, mis‑configured propagation or exception handling—and provides concrete code examples and practical solutions.

AOPJavaSpring
0 likes · 21 min read
Why Your Spring @Transactional Fails: 7 Common Pitfalls and How to Fix Them
java1234
java1234
Jan 9, 2026 · Backend Development

Stop Manually Deploying JARs—Dynamic Hot Deployment Made Easy

This article shows how to let users upload a JAR that implements a predefined interface, then hot‑deploy the new implementation at runtime using either Spring annotation‑based registration or plain reflection, including bean registration, removal, and a test harness.

Bean RegistrationDynamic JAR LoadingHot Deployment
0 likes · 8 min read
Stop Manually Deploying JARs—Dynamic Hot Deployment Made Easy
Java Companion
Java Companion
Jan 9, 2026 · Backend Development

Why Many Large Companies Discourage Using @Transactional in Spring

The article explains common pitfalls that cause Spring @Transactional to fail or not roll back, such as incorrect method visibility, final or static modifiers, internal method calls, beans not managed by Spring, multithreading, unsupported database engines, misconfigured propagation, swallowed exceptions, and improper rollback settings, and offers practical solutions for each case.

AOPJavaMyISAM
0 likes · 18 min read
Why Many Large Companies Discourage Using @Transactional in Spring
macrozheng
macrozheng
Jan 5, 2026 · Backend Development

Why @NotEmpty Misses Blank Strings and How @NotBlank Fixes It

The article explains why using @NotEmpty fails to detect blank strings, demonstrates the issue with a simple demo, shows the correct use of StringUtils.isBlank, and clarifies the differences between @NotNull, @NotEmpty, and @NotBlank annotations in Java validation.

JavaSpringStringUtils
0 likes · 4 min read
Why @NotEmpty Misses Blank Strings and How @NotBlank Fixes It
Java Web Project
Java Web Project
Jan 4, 2026 · Backend Development

Unlock Spring 6 & Boot 3: Virtual Threads, Declarative HTTP, and GraalVM Native Images

This article walks through the core upgrades in Spring 6 and Spring Boot 3—raising the JDK baseline, adopting Project Loom virtual threads, using the new @HttpExchange declarative client, standardizing error responses with ProblemDetail, compiling to GraalVM native images, and adding Prometheus monitoring—while providing concrete code examples, performance numbers, and a step‑by‑step migration roadmap.

GraalVMPrometheusSpring
0 likes · 8 min read
Unlock Spring 6 & Boot 3: Virtual Threads, Declarative HTTP, and GraalVM Native Images
java1234
java1234
Jan 3, 2026 · Backend Development

Why Spring and Spring MVC Need Parent‑Child Containers

The article explains the concept of parent‑child containers in Spring, outlines three key benefits—modularization, scoped bean visibility, and configuration reuse—provides step‑by‑step XML and Java code examples, and shows how the containers integrate with Spring MVC to create a cleaner, more maintainable application architecture.

ApplicationContextJavaParent-Child Container
0 likes · 7 min read
Why Spring and Spring MVC Need Parent‑Child Containers
Java Tech Enthusiast
Java Tech Enthusiast
Jan 3, 2026 · Backend Development

How to Propagate TraceId with Spring MDC Across HTTP, MQ, Thread Pools, and Jobs

This guide explains how to use Spring's built‑in Mapped Diagnostic Context (MDC) to generate a traceId for each request, configure Logback to include it in logs, and propagate the traceId through HTTP filters, RabbitMQ messages, thread‑pool tasks, and XXL‑Job scheduled jobs, complete with code examples and configuration snippets.

JavaLoggingMDC
0 likes · 11 min read
How to Propagate TraceId with Spring MDC Across HTTP, MQ, Thread Pools, and Jobs
LuTiao Programming
LuTiao Programming
Jan 2, 2026 · Backend Development

Been Writing Spring Controllers for a Decade? Time to Ditch the Boilerplate Pattern

The article argues that traditional Spring Controllers impose heavy, repetitive scaffolding that outweighs business value, and demonstrates how a functional Java API can replace class‑based controllers with simple handler functions, reducing cognitive load, test complexity, and development overhead.

Backend DevelopmentControllerFunctional API
0 likes · 7 min read
Been Writing Spring Controllers for a Decade? Time to Ditch the Boilerplate Pattern
Java Architect Handbook
Java Architect Handbook
Dec 31, 2025 · Backend Development

Mastering API Rate Limiting with Spring Interceptor and Redis

This article walks through building a Spring MVC interceptor that leverages Redis to enforce per‑IP request limits, explains configurable parameters, shows how to apply protection selectively via mapping rules or custom annotations, and discusses practical pitfalls such as sliding‑window logic, path‑parameter handling, and real‑IP detection.

API SecurityJavaRedis
0 likes · 20 min read
Mastering API Rate Limiting with Spring Interceptor and Redis
Top Architect
Top Architect
Dec 25, 2025 · Backend Development

Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC

This guide shows how to eliminate manual logging of user and order identifiers in a Java e‑commerce system by declaring log placeholders, storing values in ThreadLocal, and using a custom @UserLog annotation with Spring AOP to automatically populate MDC variables for Log4j2.

AOPAnnotationJava
0 likes · 9 min read
Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC
Java Companion
Java Companion
Dec 23, 2025 · Backend Development

Three Spring Async Streaming APIs to Eliminate Timeout Issues

This article explains how to handle long‑running Spring endpoints by using three asynchronous streaming tools—ResponseBodyEmitter, SseEmitter, and StreamingResponseBody—showing their appropriate scenarios, configuration details, and complete code examples that keep the servlet thread free and avoid timeout problems.

ResponseBodyEmitterSpringSseEmitter
0 likes · 9 min read
Three Spring Async Streaming APIs to Eliminate Timeout Issues
Java One
Java One
Dec 22, 2025 · Backend Development

Injecting Third‑Party Classes in Spring Boot with @Configuration and @Bean

This tutorial explains how to register and inject a third‑party implementation like SwimCoach into a Spring Boot application using a @Configuration class and @Bean methods, covering bean creation, custom IDs, qualifier usage, and practical scenarios such as integrating AWS S3 clients.

AWSBeanSpring
0 likes · 5 min read
Injecting Third‑Party Classes in Spring Boot with @Configuration and @Bean
Architect
Architect
Dec 21, 2025 · Backend Development

Mastering Spring Event Listeners: From Coffee Shop Analogy to High‑Throughput Architecture

This article uses a coffee‑shop analogy to explain Spring event listeners, demonstrates how to define, publish, and handle events, presents three techniques for handling massive traffic, shares real‑world incidents and lessons, compares listeners with MQ, and offers performance‑tuning tips and best‑practice rules.

Best PracticesJavaPerformance
0 likes · 10 min read
Mastering Spring Event Listeners: From Coffee Shop Analogy to High‑Throughput Architecture
Architect's Guide
Architect's Guide
Dec 21, 2025 · Backend Development

How Spring Solves Circular Dependencies: Inside the Three‑Level Cache

This article provides a detailed walkthrough of Spring's circular‑dependency resolution, explaining the three‑level cache mechanism, step‑by‑step bean creation flow, and the underlying source‑code logic, complete with diagrams and code examples for deep understanding.

AOPDependency InjectionJava
0 likes · 12 min read
How Spring Solves Circular Dependencies: Inside the Three‑Level Cache
Tech Freedom Circle
Tech Freedom Circle
Dec 20, 2025 · Backend Development

How SpringBoot Loads Classes: Deep Dive into ClassLoaders and Bean Creation

This article dissects the SpringBoot class‑loading mechanism, explaining how the JVM parent‑delegation model is selectively overridden with custom class loaders like LaunchedURLClassLoader and RestartClassLoader, and how these changes integrate with Spring's bean lifecycle, auto‑configuration, and practical troubleshooting techniques.

AutoConfigurationBeanDependency Injection
0 likes · 37 min read
How SpringBoot Loads Classes: Deep Dive into ClassLoaders and Bean Creation
JavaGuide
JavaGuide
Dec 19, 2025 · Backend Development

IntelliJ IDEA 2025.3.1: Critical Fixes and the Rollback of Query Console

IntelliJ IDEA 2025.3.1 quickly follows the 2025.3 major release, fixing over 200 issues, reinstating the classic Query Console, addressing WSL‑related Java debugging problems, stabilizing Gradle/Maven sync for large multi‑module projects, improving Spring tooling, Java debugging, Kotlin‑MongoDB support, and correcting terminal and TypeScript bugs.

2025.3.1IntelliJ IDEAJava
0 likes · 6 min read
IntelliJ IDEA 2025.3.1: Critical Fixes and the Rollback of Query Console
LuTiao Programming
LuTiao Programming
Dec 18, 2025 · Backend Development

Think You Understand Exceptions? Senior Java Engineers’ Real Exception‑Handling Practices (99% Get It Wrong)

Most Java developers mistakenly equate writing try‑catch blocks with proper exception handling, leading to lost context, noisy logs, and fragile code, while senior engineers employ custom unchecked exceptions, a layered hierarchy, global handlers, RFC‑7807 responses, and observability tools to build predictable, traceable, and recoverable systems.

GlobalExceptionHandlerJavaRFC7807
0 likes · 8 min read
Think You Understand Exceptions? Senior Java Engineers’ Real Exception‑Handling Practices (99% Get It Wrong)
Architect
Architect
Dec 18, 2025 · Backend Development

Why Graceful Shutdown Is Essential for Spring Event and How to Avoid Common Pitfalls

This article shares hard‑learned production experience on using Spring Event, explaining why services must shut down gracefully before publishing events, how startup timing can cause event loss, which business scenarios fit the publish‑subscribe model, and practical reliability techniques such as retries and idempotency.

EventJavaPubSub
0 likes · 11 min read
Why Graceful Shutdown Is Essential for Spring Event and How to Avoid Common Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Dec 18, 2025 · Backend Development

How to Co‑exist Multiple DataSources in Spring Without Switching?

This guide explains the concept of multi‑DataSource coexistence, when it is appropriate, step‑by‑step configuration for MySQL and TDengine, transaction manager handling, custom annotations, mapper scanning, differences from dynamic routing, common pitfalls, and best‑practice usage in a Spring‑MyBatis backend.

JavaMulti-DataSourceMyBatis
0 likes · 13 min read
How to Co‑exist Multiple DataSources in Spring Without Switching?
Su San Talks Tech
Su San Talks Tech
Dec 17, 2025 · Fundamentals

What’s New in IntelliJ IDEA 2025.3 Unified Edition? A Feature Deep‑Dive

IntelliJ IDEA 2025.3 merges Ultimate and Community editions into a single installer, unlocks many formerly premium features for free users, adds command completion, full Java 25 support, a new Islands theme, AI enhancements, expanded framework integrations, and a suite of productivity plugins for modern development workflows.

AICommand CompletionIDE
0 likes · 12 min read
What’s New in IntelliJ IDEA 2025.3 Unified Edition? A Feature Deep‑Dive
Architecture Digest
Architecture Digest
Dec 16, 2025 · Backend Development

What’s New in IntelliJ IDEA 2025.3? 800+ Fixes and a Unified Release

IntelliJ IDEA 2025.3 introduces a unified distribution, extensive Spring and language support, improved Git integration, terminal and build tool enhancements, better web development handling for large monorepos, and numerous performance optimizations, all while fixing over 800 issues across the IDE.

IDEIntelliJ IDEAJava
0 likes · 6 min read
What’s New in IntelliJ IDEA 2025.3? 800+ Fixes and a Unified Release
LuTiao Programming
LuTiao Programming
Dec 14, 2025 · Backend Development

How Spring 6 + Boot 3 Supercharges Startup Speed and Concurrency

The article dissects Spring 6 and Boot 3's core capabilities—JDK 17 baseline, Project Loom virtual threads, declarative @HttpExchange client, RFC 7807 error standardization, GraalVM native images, Jakarta EE 9 migration, and Prometheus monitoring—showing benchmark gains and a migration roadmap for high‑concurrency e‑commerce services.

GraalVMJavaPrometheus
0 likes · 9 min read
How Spring 6 + Boot 3 Supercharges Startup Speed and Concurrency
Java Architect Handbook
Java Architect Handbook
Dec 13, 2025 · Backend Development

Evolving Business Operation Logging: From AOP Annotations to Binlog Time Windows

This article examines the need for comprehensive business operation logging in a central system, outlines the benefits of audit, security, monitoring, and analysis, and walks through three progressive solutions—AOP with annotations, AOP with SpEL, and a Binlog‑based time‑window approach—detailing their implementations, trade‑offs, and architectural considerations.

AOPBinlogJava
0 likes · 20 min read
Evolving Business Operation Logging: From AOP Annotations to Binlog Time Windows
Java Architect Handbook
Java Architect Handbook
Dec 12, 2025 · Backend Development

Master Spring Task: Build, Optimize, and Scale Your Scheduled Jobs

This guide walks you through what Spring Task is, how to enable it in three simple steps, decode cron expressions, explore six real‑world use cases, unlock four advanced features, avoid common pitfalls, and apply performance‑tuning and future‑proofing techniques for robust Java scheduling.

Distributed SchedulingJavaSpring
0 likes · 11 min read
Master Spring Task: Build, Optimize, and Scale Your Scheduled Jobs
Java One
Java One
Dec 8, 2025 · Backend Development

How to Enable Lazy Initialization for Spring Beans to Boost Startup Performance

This article explains Spring's default eager bean creation, demonstrates how to add @Lazy annotations or a global property to defer bean instantiation until needed, and discusses the benefits and drawbacks of lazy loading with code examples and runtime observations.

BeanLazy InitializationSpring
0 likes · 4 min read
How to Enable Lazy Initialization for Spring Beans to Boost Startup Performance
Lobster Programming
Lobster Programming
Dec 8, 2025 · Backend Development

How Netflix Ribbon Implements Client‑Side Load Balancing in Java

This article explains Netflix's open‑source Ribbon client‑side load balancer, detailing how it intercepts @LoadBalanced RestTemplate calls, resolves service names to IPs using various algorithms, and forwards requests via HttpClient, while highlighting its key features such as in‑process balancing, multiple strategies, fault‑tolerance, and protocol support.

Client-side load balancingJavaRibbon
0 likes · 4 min read
How Netflix Ribbon Implements Client‑Side Load Balancing in Java
Architect
Architect
Dec 7, 2025 · Backend Development

How Spring Breaks Circular Dependencies: A Deep Dive into the 3‑Level Cache

This article explains Spring's circular‑dependency problem, introduces the three‑level cache (singletonObjects, earlySingletonObjects, singletonFactories), walks through the full execution flow with code examples, and clarifies why each cache level and AOP proxy factories are essential for correct bean initialization.

AOPBeanFactoryJava
0 likes · 12 min read
How Spring Breaks Circular Dependencies: A Deep Dive into the 3‑Level Cache
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 3, 2025 · Backend Development

Mastering Spring Boot 3 TransactionExecutionListener with Real‑World Code

This article introduces Spring Boot 3's TransactionExecutionListener, explains its purpose compared to traditional transaction hooks, provides a complete code example—including entity, service, custom listener, and test cases—and demonstrates how to observe transaction phases and handle both successful commits and rollbacks.

JavaSpringSpring Boot
0 likes · 10 min read
Mastering Spring Boot 3 TransactionExecutionListener with Real‑World Code
JavaGuide
JavaGuide
Dec 2, 2025 · Interview Experience

Tuhu Auto’s 2023 Java Backend Salary & Interview Guide: 30k‑33k Packages and Key Technical Topics

The article details Tuhu Auto’s Shanghai Java backend compensation (30k‑33k monthly with 14.4‑month salary and 2‑3w signing bonus), outlines the company’s market position, and provides a comprehensive list of technical and HR interview questions covering JVM, concurrency, MySQL, Spring, DDD, distributed locking, rate limiting, and more.

ConcurrencyJVMJava
0 likes · 7 min read
Tuhu Auto’s 2023 Java Backend Salary & Interview Guide: 30k‑33k Packages and Key Technical Topics
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2025 · Backend Development

Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection

This article explains why the @Autowired field injection in Spring is often discouraged, compares it with @Resource and constructor injection, shows practical code examples and error scenarios, and provides guidance on choosing the most appropriate dependency‑injection method for robust backend development.

AutowiredBackend DevelopmentConstructor Injection
0 likes · 9 min read
Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection
Tech Freedom Circle
Tech Freedom Circle
Nov 17, 2025 · Backend Development

Spring Design Patterns Interview: The One Question That Can Make or Break Your Offer

This article breaks down Spring’s layered architecture and walks through ten core design patterns—factory, singleton, proxy, template method, observer, adapter, decorator, strategy, chain of responsibility, facade, and delegate—showing how they appear in real interview scenarios and how mastering them can turn a tough interview question into a winning advantage.

Design PatternsJavaSpring
0 likes · 50 min read
Spring Design Patterns Interview: The One Question That Can Make or Break Your Offer
Java Architecture Diary
Java Architecture Diary
Nov 17, 2025 · Backend Development

Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API

This article explains how Spring Framework 7 introduces the BeanRegistrar interface to replace the cumbersome ImportBeanDefinitionRegistrar, demonstrating the new API with concise code examples, comparing old and new approaches, and providing a complete practical example for dynamically registering beans based on runtime configuration.

BeanRegistrarDynamic Bean RegistrationJava
0 likes · 11 min read
Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API
Java Backend Technology
Java Backend Technology
Nov 13, 2025 · Backend Development

Why Fast‑Retry Outperforms Spring‑Retry for Million‑Task Scenarios

Fast‑Retry is a high‑performance asynchronous retry framework that can handle millions of tasks with far lower latency than traditional synchronous retry libraries like Spring‑Retry or Guava‑Retry, thanks to its non‑blocking design, customizable retry logic, and support for both programmatic and annotation‑based usage.

JavaPerformanceSpring
0 likes · 11 min read
Why Fast‑Retry Outperforms Spring‑Retry for Million‑Task Scenarios
Lobster Programming
Lobster Programming
Nov 10, 2025 · Backend Development

When to Use @Resource vs @Autowired in Spring: Key Differences Explained

This article compares @Resource and @Autowired in the Spring framework, covering their origins, injection order, supported injection styles, and ideal usage scenarios to help developers choose the right annotation for loosely coupled, maintainable applications.

AutowiredBackend DevelopmentDependency Injection
0 likes · 2 min read
When to Use @Resource vs @Autowired in Spring: Key Differences Explained
Top Architect
Top Architect
Nov 9, 2025 · Backend Development

Mastering Idempotency: 4 Proven Techniques for Reliable Backend Operations

This article explains four common idempotency strategies—token, database unique index, distributed lock, and request‑body digest—detailing their core ideas, key concepts, and providing ready‑to‑copy Spring/Redis code examples to prevent duplicate requests in high‑traffic backend systems.

Distributed LockSpringToken
0 likes · 10 min read
Mastering Idempotency: 4 Proven Techniques for Reliable Backend Operations
Java Companion
Java Companion
Nov 8, 2025 · Backend Development

How Jackson Views Let One DTO Replace Many and End DTO Explosion

The article explains how Jackson Views can consolidate multiple DTO classes into a single DTO by using view interfaces and @JsonView annotations, dramatically reducing code duplication, simplifying maintenance, and providing flexible field selection for different API scenarios.

@JsonViewDTOJava
0 likes · 11 min read
How Jackson Views Let One DTO Replace Many and End DTO Explosion
Code Ape Tech Column
Code Ape Tech Column
Nov 6, 2025 · Backend Development

Simplify File Downloads in Spring with a One‑Annotation Library

This article introduces a Spring‑based download library that lets developers add a single @Download annotation to any controller method to automatically handle file, HTTP resource, or text downloads, supporting concurrent loading, compression, and both WebMVC and WebFlux response models.

AnnotationDownloadReactive
0 likes · 15 min read
Simplify File Downloads in Spring with a One‑Annotation Library
Su San Talks Tech
Su San Talks Tech
Nov 5, 2025 · Backend Development

How to Build a Scalable Asynchronous Excel Export System for Large E‑Commerce

This article explains how a large e‑commerce platform implements a high‑performance, asynchronous Excel export mechanism using annotation‑driven declarative programming, AOP interception, Quartz scheduling, RocketMQ messaging, and OSS storage to handle massive data sets without blocking user requests.

Excel ExportQuartzRocketMQ
0 likes · 10 min read
How to Build a Scalable Asynchronous Excel Export System for Large E‑Commerce
Architect
Architect
Nov 4, 2025 · Operations

How to Accurately Track API Calls per Minute: 5 Proven Monitoring Strategies

This article explores why precise per‑minute API call statistics are essential for performance bottleneck detection, capacity planning, security alerts, billing, and troubleshooting, and presents five practical implementations—including fixed‑window counters, sliding windows, AOP‑based interception, Redis time‑series storage, and Micrometer‑Prometheus integration—along with their trade‑offs and capacity‑planning guidelines.

JavaPrometheusRedis
0 likes · 25 min read
How to Accurately Track API Calls per Minute: 5 Proven Monitoring Strategies
Su San Talks Tech
Su San Talks Tech
Nov 4, 2025 · Backend Development

How I Boosted a Java Backend’s Throughput from 50/s to 500/s: A Real‑World Performance Debugging Journey

In this detailed case study, the author walks through diagnosing and fixing severe throughput bottlenecks in a Java Spring‑based B2B service, covering lock contention, slow SQL, excessive logging, thread‑pool tuning, JVM memory adjustments, and the impact of bean creation on performance, ultimately achieving nearly a ten‑fold increase in requests per second.

JavaProfilingSpring
0 likes · 14 min read
How I Boosted a Java Backend’s Throughput from 50/s to 500/s: A Real‑World Performance Debugging Journey
Architecture Digest
Architecture Digest
Nov 3, 2025 · Backend Development

Ensuring Transaction Rollback in Multithreaded Spring MyBatis Operations

This article explains why @Transactional fails in multithreaded MySQL insert scenarios, demonstrates how to split large data sets, configure a thread pool, and use SqlSession with manual commit to guarantee atomicity across parallel threads, complete with runnable code examples and test results.

ConcurrencyJavaMultithreading
0 likes · 8 min read
Ensuring Transaction Rollback in Multithreaded Spring MyBatis Operations
Selected Java Interview Questions
Selected Java Interview Questions
Nov 2, 2025 · Backend Development

Spring Event-Driven Architecture: Coffee Shop Analogy to High‑Throughput Systems

Using a coffee‑shop metaphor, this article explains how Spring’s event‑driven model—event definitions, publishing, and listeners—enables scalable, decoupled backend systems, compares listeners with MQ, shares performance benchmarks, and provides best‑practice guidelines for reliable, high‑throughput applications.

Backend DevelopmentEvent-Driven ArchitectureSpring
0 likes · 9 min read
Spring Event-Driven Architecture: Coffee Shop Analogy to High‑Throughput Systems
Top Architect
Top Architect
Nov 1, 2025 · Information Security

Mastering CAS SSO: Step‑by‑Step Guide to Build Single Sign‑On with Java

This article explains the concepts of Single Sign‑On (SSO) and the Central Authentication Service (CAS), then provides a detailed, code‑rich tutorial for setting up a CAS server, configuring clients, disabling HTTPS for development, and testing the end‑to‑end SSO workflow using Java and Spring.

CASJavaSSO
0 likes · 10 min read
Mastering CAS SSO: Step‑by‑Step Guide to Build Single Sign‑On with Java
Java Architect Essentials
Java Architect Essentials
Oct 30, 2025 · Backend Development

How Enums Can Eliminate Messy if‑else Chains in Java Payment Logic

This article explains why traditional if‑else payment routing is hard to maintain, demonstrates how Java enums combined with functional interfaces and the strategy pattern can centralize behavior, improve extensibility, and integrate cleanly with Spring, providing a robust, testable solution for payment channel selection.

Design PatternsEnumJava
0 likes · 10 min read
How Enums Can Eliminate Messy if‑else Chains in Java Payment Logic
Programmer XiaoFu
Programmer XiaoFu
Oct 28, 2025 · Backend Development

6 Ways to Measure API Response Time in Java

This article examines six practical techniques for measuring the latency of online interfaces in Java, from simple System.currentTimeMillis() calls to advanced AOP, interceptors, filters, and production‑grade monitoring tools like Micrometer and APM, comparing their precision, intrusiveness, and suitable scenarios.

AOPJavaPerformance
0 likes · 23 min read
6 Ways to Measure API Response Time in Java
Java Tech Enthusiast
Java Tech Enthusiast
Oct 24, 2025 · Backend Development

How to Auto‑Inject User and Order IDs into Logs with MDC & Spring AOP

This article explains how to automatically include userId and orderId in log messages by defining log placeholders, storing these values in a thread‑local MDC map, and using a custom @UserLog annotation together with Spring AOP to inject the data at runtime, simplifying debugging and improving productivity.

AOPAnnotationJava
0 likes · 8 min read
How to Auto‑Inject User and Order IDs into Logs with MDC & Spring AOP
Architecture Digest
Architecture Digest
Oct 23, 2025 · Backend Development

Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead

Spring’s team announced that RestTemplate will be deprecated in Spring Framework 7.0 and removed later, outlining its limitations and presenting the new RestClient as a modern, fluent alternative, while also recommending WebClient for reactive scenarios and offering migration strategies for existing projects.

HTTP ClientJavaRestClient
0 likes · 6 min read
Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead
DeWu Technology
DeWu Technology
Oct 22, 2025 · Backend Development

Why Spring’s Circular Dependency Can Crash Your Service and How to Fix It

A backend admin service failed to start due to a Spring circular‑dependency error where a bean was injected in its raw form before AOP proxy creation, exposing the limits of Spring’s three‑level cache and prompting a detailed analysis of the root cause and practical solutions.

AOPBackend DevelopmentBean Creation
0 likes · 30 min read
Why Spring’s Circular Dependency Can Crash Your Service and How to Fix It
Architect
Architect
Oct 21, 2025 · Backend Development

Boost PostgreSQL IN Query Performance with Spring AOP SplitWork Annotation

This article explains how to improve the performance of large PostgreSQL IN queries by splitting them into smaller batches, executing them concurrently with Spring AOP and custom annotations, and then merging the results, providing a reusable solution for high‑volume database operations.

AOPIN query optimizationJava
0 likes · 11 min read
Boost PostgreSQL IN Query Performance with Spring AOP SplitWork Annotation
macrozheng
macrozheng
Oct 21, 2025 · Backend Development

Boost Massive Task Retries with Fast‑Retry: A High‑Performance Async Framework

This article introduces Fast‑Retry, a high‑performance asynchronous multi‑task retry framework for Java, compares its speed against Spring‑Retry and Guava‑Retry, and provides step‑by‑step code examples for dependency setup, task creation, annotation usage, and custom retry annotations.

JavaPerformanceSpring
0 likes · 12 min read
Boost Massive Task Retries with Fast‑Retry: A High‑Performance Async Framework
Ray's Galactic Tech
Ray's Galactic Tech
Oct 19, 2025 · Fundamentals

Master Java Design Patterns: From GoF Classics to Modern Architecture

This comprehensive guide explains why design patterns matter, links them to SOLID principles, enumerates the 23 classic GoF patterns with Java examples, compares commonly confused patterns, introduces modern architectural patterns, shows how they integrate with Spring, and offers a practical learning roadmap for developers.

Design PatternsJavaSOLID
0 likes · 8 min read
Master Java Design Patterns: From GoF Classics to Modern Architecture
JavaGuide
JavaGuide
Oct 19, 2025 · Backend Development

Java Backend Guide: @Autowired vs @Resource, MySQL Engines, Redis, JVM OOM

The article shares ZTE salary offers and interview tips, then dives into technical deep‑dives on Spring bean injection annotations, compares MySQL InnoDB and MyISAM, explains Redis usage patterns, and walks through JVM OutOfMemoryError diagnosis with concrete code and tooling examples.

JVMJavaMySQL
0 likes · 21 min read
Java Backend Guide: @Autowired vs @Resource, MySQL Engines, Redis, JVM OOM
ITPUB
ITPUB
Oct 14, 2025 · Backend Development

How to Eliminate 95% of Try‑Catch Blocks with Unified Exception Handling in Spring

This article explains how to replace repetitive try‑catch blocks in Spring applications by using @ControllerAdvice, custom Assert utilities, and enum‑based exception definitions, providing a clean, unified error‑handling mechanism with consistent response structures and environment‑aware messaging.

@ControllerAdviceJavaSpring
0 likes · 25 min read
How to Eliminate 95% of Try‑Catch Blocks with Unified Exception Handling in Spring
Ray's Galactic Tech
Ray's Galactic Tech
Oct 13, 2025 · Backend Development

Avoid the 6 Fatal @Transactional Pitfalls in Spring Boot

This article explains six common and dangerous pitfalls when using Spring's @Transactional annotation, illustrates each with problematic code examples, and provides concrete best‑practice solutions to ensure correct transaction propagation, self‑invocation handling, exception rollback, data source consistency, transaction scope, and method visibility.

@TransactionalBest PracticesJava
0 likes · 8 min read
Avoid the 6 Fatal @Transactional Pitfalls in Spring Boot
macrozheng
macrozheng
Oct 10, 2025 · Backend Development

Master Java Task Scheduling: From Crontab to Quartz, Spring and Distributed Solutions

This comprehensive guide explains the fundamentals and practical implementations of task scheduling in Java, covering Linux crontab, JDK Timer, ScheduledExecutorService, Quartz, Spring Schedule, and popular distributed schedulers like SchedulerX, elastic‑job, XXL‑Job and LTS, with code examples and configuration details.

Distributed SchedulingJavaQuartz
0 likes · 23 min read
Master Java Task Scheduling: From Crontab to Quartz, Spring and Distributed Solutions
Top Architect
Top Architect
Oct 6, 2025 · Backend Development

Designing Clean API Response Wrappers with Annotations and Interceptors

This article explains how to structure API responses in a microservice environment by using a standard JSON format, custom status code ranges, a Result wrapper class, and Spring annotations with interceptors to automatically package and handle responses and errors in a clean, maintainable way.

API designSpringannotations
0 likes · 10 min read
Designing Clean API Response Wrappers with Annotations and Interceptors
IT Services Circle
IT Services Circle
Oct 2, 2025 · Backend Development

How Spring Simplifies Transaction Management and Solves Common Pitfalls

This article explains the challenges of manual JDBC transaction handling, introduces Spring's unified transaction API with PlatformTransactionManager, TransactionDefinition, and TransactionStatus, demonstrates code examples for programmatic and declarative transactions, and discusses common pitfalls such as non‑public methods, self‑invocation, and exception handling.

AOPJDBCJava
0 likes · 17 min read
How Spring Simplifies Transaction Management and Solves Common Pitfalls
Ray's Galactic Tech
Ray's Galactic Tech
Sep 29, 2025 · Backend Development

Mastering Spring Boot: Deep Dive into Core Extension Points

This guide explains Spring and Spring Boot's highly extensible architecture by detailing nine core extension points, their injection timing, practical uses, and best‑practice recommendations, enabling developers to customize the container lifecycle from startup to runtime.

Backend DevelopmentBeanFactoryPostProcessorJava
0 likes · 6 min read
Mastering Spring Boot: Deep Dive into Core Extension Points
Architect's Tech Stack
Architect's Tech Stack
Sep 27, 2025 · Backend Development

Ensuring Transaction Rollback in Multi‑Threaded Java Services

This article explains why @Transactional fails in multi‑threaded Spring services, provides a utility for splitting large data sets, shows thread‑pool configuration, demonstrates a failing transaction scenario, and presents a solution using manual MyBatis sqlSession commit to guarantee atomic rollback across all threads.

JavaMyBatisSpring
0 likes · 10 min read
Ensuring Transaction Rollback in Multi‑Threaded Java Services
Architect
Architect
Sep 26, 2025 · Backend Development

Refactor Payment Logic: Replace if‑else with Java Enums & Strategy

This article demonstrates how to replace cumbersome if‑else chains in payment processing with Java enums that encapsulate behavior, leveraging functional interfaces, the strategy pattern, and Spring integration to achieve cleaner, extensible, and testable code while adhering to the Open/Closed principle.

EnumJavaSpring
0 likes · 10 min read
Refactor Payment Logic: Replace if‑else with Java Enums & Strategy
Architect
Architect
Sep 25, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Processing in Java

This article explains why asynchronous execution is essential for reducing latency in Java applications and walks through eight practical implementations—including threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava—complete with code examples and usage tips.

CompletableFutureFutureGuava
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Processing in Java
Architecture Digest
Architecture Digest
Sep 24, 2025 · Backend Development

Streamlining Spring Controllers with Unified Responses and Validation

This article explains how to simplify Spring MVC controller code by introducing a unified response format, leveraging ResponseBodyAdvice for automatic wrapping, applying JSR‑303 validation for request parameters, creating custom validators, and handling exceptions globally to keep business logic clean and maintainable.

ControllerJavaSpring
0 likes · 15 min read
Streamlining Spring Controllers with Unified Responses and Validation
Java Tech Enthusiast
Java Tech Enthusiast
Sep 24, 2025 · Backend Development

Essential Java Interview Questions Every Backend Engineer Must Master

This guide compiles high‑frequency Java interview questions—from core language concepts and collections to JVM tuning, MySQL indexing, Redis caching, Spring frameworks, micro‑services, and MQ reliability—providing a comprehensive reference for candidates targeting small‑to‑mid‑size companies.

JVMJavaMySQL
0 likes · 11 min read
Essential Java Interview Questions Every Backend Engineer Must Master
Java Architecture Diary
Java Architecture Diary
Sep 24, 2025 · Backend Development

Simplify AI-Powered HTTP Services with Spring’s New Service Registry

The article explains how Spring Framework 6’s @HttpExchange annotation and the new HTTP service registry introduced in Spring Framework 7 enable developers to declaratively define, configure, and manage AI‑driven HTTP clients as Spring beans, reducing boilerplate, supporting multiple providers, and integrating seamlessly with Spring Boot, Cloud, and Security.

AI integrationHTTP ClientService Registry
0 likes · 11 min read
Simplify AI-Powered HTTP Services with Spring’s New Service Registry
Java Architecture Diary
Java Architecture Diary
Sep 22, 2025 · Backend Development

Unlock Massive Concurrency: How Java 25 Virtual Threads Supercharge Spring Apps

Java 25 introduces major upgrades to virtual threads, offering dramatically lower memory usage, near‑zero creation cost, and efficient I/O handling, and this guide explains their advantages, compares them with traditional thread pools and @Async, provides Spring Boot 3.5 configuration examples, and highlights pitfalls and best‑practice tips.

ConcurrencySpringthread pool
0 likes · 8 min read
Unlock Massive Concurrency: How Java 25 Virtual Threads Supercharge Spring Apps
JD Tech Talk
JD Tech Talk
Sep 18, 2025 · Fundamentals

Mastering the Strategy Pattern in Java: Real-World Spring Implementation

This article explains the Strategy (Policy) Pattern, illustrates its structure, and demonstrates a practical Spring-based implementation where different message types are processed by distinct strategy services, using an enum to map types to beans for flexible, interchangeable algorithms.

Dependency InjectionDesign PatternsSpring
0 likes · 4 min read
Mastering the Strategy Pattern in Java: Real-World Spring Implementation
JD Cloud Developers
JD Cloud Developers
Sep 18, 2025 · Fundamentals

Mastering the Strategy Pattern in Spring: Dynamic Message Processing Explained

This article introduces the Strategy design pattern, explains its core concept of interchangeable algorithms, and demonstrates a practical Spring-based implementation that routes various message types to specific services using an enum‑driven bean lookup, enabling flexible updates to Elasticsearch for merchant search and analytics.

Dependency InjectionDesign PatternsSpring
0 likes · 3 min read
Mastering the Strategy Pattern in Spring: Dynamic Message Processing Explained