Tagged articles
585 articles
Page 1 of 6
Coder Trainee
Coder Trainee
May 8, 2026 · Backend Development

How Spring Boot Instantiates Beans and Resolves Circular Dependencies

This article walks through Spring Boot's bean creation pipeline—from the initial getBean call through doGetBean, the three‑level singleton cache, and the detailed steps of createBean, populateBean, and initializeBean—explaining how circular dependencies are safely resolved and where AOP proxies are generated.

Spring Bootaopbean
0 likes · 14 min read
How Spring Boot Instantiates Beans and Resolves Circular Dependencies
Java Tech Enthusiast
Java Tech Enthusiast
May 4, 2026 · Backend Development

Minimalist Spring Boot 3: Annotation‑Based Efficient Sensitive‑Word Handling

This guide demonstrates how to use a custom @SensitiveFilter annotation together with an AOP aspect and the lightweight sensitive‑word library to implement global sensitive‑word filtering in Spring Boot 3, supporting both automatic replacement and detection modes while eliminating repetitive code across controllers.

JavaSensitive Word FilteringSpring Boot
0 likes · 14 min read
Minimalist Spring Boot 3: Annotation‑Based Efficient Sensitive‑Word Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 27, 2026 · Backend Development

One‑Line Annotation for Method Monitoring in Spring Boot

This article demonstrates how to add a single @Monitor annotation to Spring Boot 3.5.0 services and automatically obtain call‑trace and execution‑time metrics by leveraging Spring AOP, SimpleTraceInterceptor, PerformanceMonitorInterceptor, custom advisors, and a BeanPostProcessor, with full code examples and a test controller.

BeanPostProcessorCustom AnnotationMethod Monitoring
0 likes · 6 min read
One‑Line Annotation for Method Monitoring in Spring Boot
JD Tech
JD Tech
Apr 21, 2026 · Backend Development

How AI Can Co‑Create a Query‑Logging Feature: Two Paths, One Result

A test‑developer explores how AI can design and implement a query‑recording function for an insurance policy platform, comparing a code‑savvy approach with a low‑code approach, detailing architecture, AOP interception, async handling, code generation, review, and testing considerations.

AIAsyncBackend Development
0 likes · 17 min read
How AI Can Co‑Create a Query‑Logging Feature: Two Paths, One Result
Top Architect
Top Architect
Mar 29, 2026 · Backend Development

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

This article explains how to automatically include userId and orderId in log messages of an e‑commerce system by defining log placeholders, storing IDs in ThreadLocal, and using a custom @UserLog annotation with Spring AOP to push the values into MDC, complete with configuration, code examples, and verification steps.

Javaannotationaop
0 likes · 9 min read
Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC
Architect's Guide
Architect's Guide
Feb 16, 2026 · Fundamentals

Mastering AOP: Designing Joinpoint Interfaces for Clean Module Architecture

This article explains how aspect‑oriented programming (AOP) addresses cross‑cutting concerns by defining joinpoint interfaces, describing their design, illustrating Java examples, and comparing static and dynamic weaving techniques used in frameworks like Spring.

Aspect Oriented ProgrammingBackend DevelopmentDesign Patterns
0 likes · 8 min read
Mastering AOP: Designing Joinpoint Interfaces for Clean Module Architecture
Java Companion
Java Companion
Feb 5, 2026 · Backend Development

Elegant Dynamic Data Source Switching in SpringBoot Using ThreadLocal and AbstractRoutingDataSource

This article walks through building an elegant dynamic data‑source switch in SpringBoot by combining ThreadLocal with AbstractRoutingDataSource, covering the context holder, custom routing class, YAML configuration, testing, annotation‑driven switching, and runtime addition of new data sources.

Runtime DataSource RegistrationSpringBootThreadLocal
0 likes · 16 min read
Elegant Dynamic Data Source Switching in SpringBoot Using ThreadLocal and AbstractRoutingDataSource
Java Backend Technology
Java Backend Technology
Feb 5, 2026 · Backend Development

Why Your Spring @Transactional May Fail and How to Fix It

This article explains the common reasons Spring transactions become ineffective or fail to roll back—such as wrong method visibility, final modifiers, self‑invocation, non‑Spring beans, multithreading, unsupported table engines, misconfigured propagation, swallowed exceptions, and improper rollback settings—while providing practical code solutions and best‑practice recommendations.

Javaaopdatabase
0 likes · 20 min read
Why Your Spring @Transactional May Fail and How to Fix It
大转转FE
大转转FE
Jan 21, 2026 · Frontend Development

Boost Frontend Efficiency: How zzChromeTools Eliminates Hidden Time Sinks

This article explains how the zzChromeTools Chrome extension tackles the often‑overlooked “invisible time killers” in frontend development by injecting AOP‑style hooks into the main world, capturing beacon requests, and presenting them in a lightweight DevTools panel, dramatically reducing cognitive load and debugging time.

Chrome ExtensionData TrackingMV3
0 likes · 27 min read
Boost Frontend Efficiency: How zzChromeTools Eliminates Hidden Time Sinks
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.

BackendJavaSpring Boot
0 likes · 21 min read
Why Your Spring @Transactional Fails: 7 Common Pitfalls and How to Fix Them
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.

BackendJavaMyISAM
0 likes · 18 min read
Why Many Large Companies Discourage Using @Transactional in Spring
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.

JavaThreadLocalannotation
0 likes · 9 min read
Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC
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.

JavaThree-level Cacheaop
0 likes · 12 min read
How Spring Solves Circular Dependencies: Inside the Three‑Level Cache
Su San Talks Tech
Su San Talks Tech
Dec 17, 2025 · Backend Development

Secure Your Spring Boot Apps: Easy Config and Field Encryption with Jasypt

This guide explains why sensitive configuration and user data must be encrypted in Spring Boot projects, demonstrates how to use Jasypt for property‑level encryption and custom AOP‑based field masking, and dives into the underlying PBE algorithm and source‑code mechanics.

Configuration EncryptionField MaskingJasypt
0 likes · 14 min read
Secure Your Spring Boot Apps: Easy Config and Field Encryption with Jasypt
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.

BinlogJavaSpEL
0 likes · 20 min read
Evolving Business Operation Logging: From AOP Annotations to Binlog Time Windows
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.

BeanFactoryJavaThree-level Cache
0 likes · 12 min read
How Spring Breaks Circular Dependencies: A Deep Dive into the 3‑Level Cache
Open Source Tech Hub
Open Source Tech Hub
Nov 28, 2025 · Backend Development

Boost PHP Performance with Webman AOP Plugin – Runtime Proxy, No Files

This article introduces a high‑performance, high‑availability AOP plugin for the Webman framework that works on PHP 8, explains its features, installation, configuration, usage examples, custom aspect creation methods, notification types, execution order, JoinPoint API, and provides complete code samples for caching and transaction aspects.

Aspect Oriented ProgrammingBackend DevelopmentPHP
0 likes · 10 min read
Boost PHP Performance with Webman AOP Plugin – Runtime Proxy, No Files
Tech Freedom Circle
Tech Freedom Circle
Oct 25, 2025 · Databases

Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution

This article presents a complete, step‑by‑step analysis of a high‑concurrency Redis counter component that supports up to 100 000 QPS, covering business pain points, architectural design, two core counting strategies, sharding, local batch optimization, code walkthroughs, and performance benchmark results.

CounterSliding WindowSpring Boot
0 likes · 33 min read
Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution
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.

Javaannotationaop
0 likes · 8 min read
How to Auto‑Inject User and Order IDs into Logs with MDC & Spring AOP
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.

Backend DevelopmentBean CreationJava
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.

IN query optimizationJavaPostgreSQL
0 likes · 11 min read
Boost PostgreSQL IN Query Performance with Spring AOP SplitWork Annotation
Architect's Guide
Architect's Guide
Oct 13, 2025 · Backend Development

Mastering Read‑Write Splitting in Spring Boot: A Complete Guide

This article explains why read‑write separation is essential for high‑concurrency applications, discusses its limitations, and provides a step‑by‑step Spring Boot implementation—including datasource configuration, routing logic, context management, custom annotations, AOP handling, and usage examples—complete with code snippets and diagrams.

Backend DevelopmentDataSource RoutingJava
0 likes · 11 min read
Mastering Read‑Write Splitting in Spring Boot: A Complete Guide
Architecture Digest
Architecture Digest
Oct 7, 2025 · Backend Development

Prevent Duplicate Submissions in SpringBoot: 4 Proven Solutions

This article explains why front‑end debouncing is insufficient for preventing duplicate orders, then walks through four backend strategies—local cache with AOP, Redis atomic operations, database unique indexes, and token verification—providing core principles, code examples, and pros/cons for each.

Database IndexSpringBootToken
0 likes · 18 min read
Prevent Duplicate Submissions in SpringBoot: 4 Proven Solutions
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.

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

Master Spring Boot AOP: Practical Guide to Logging, Transactions, and Performance

Spring Boot AOP simplifies cross‑cutting concerns such as logging, transaction management, and monitoring by using proxy‑based aspect‑oriented programming; this guide walks through adding dependencies, core concepts, proxy mechanisms, configuration, defining aspects with various advice types, custom annotations, real‑world scenarios, best practices, and troubleshooting tips.

Backend DevelopmentJavaSpring Boot
0 likes · 8 min read
Master Spring Boot AOP: Practical Guide to Logging, Transactions, and Performance
Architect
Architect
Sep 23, 2025 · Backend Development

Unlock Spring Boot’s Hidden Powers: 9 Built‑In Features Every Backend Engineer Should Master

This article explores Spring Boot’s most valuable built‑in capabilities—including request logging, content caching wrappers, OncePerRequestFilter, AOP utilities, starter auto‑configuration, flexible property binding, async and scheduled tasks, Actuator monitoring, and SpEL expressions—providing code examples and practical guidance to boost productivity and application robustness.

ActuatorAsyncConfiguration
0 likes · 13 min read
Unlock Spring Boot’s Hidden Powers: 9 Built‑In Features Every Backend Engineer Should Master
Java Architect Essentials
Java Architect Essentials
Sep 21, 2025 · Backend Development

Why Unified Controller Interfaces Matter: Best Practices and AOP in Java

This article explains common pitfalls in Java controller interface design—such as inconsistent return formats, missing failure handling, and inappropriate parameters—and demonstrates how a unified ResultBean response combined with AOP logging and exception handling can improve code readability, maintainability, and testability.

ControllerResultBeanSpring Boot
0 likes · 11 min read
Why Unified Controller Interfaces Matter: Best Practices and AOP in Java
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 15, 2025 · Backend Development

Master Spring’s Core: IoC, DI, AOP & Transaction Explained

This article provides a comprehensive overview of the Spring framework, covering its core principles such as Inversion of Control, Dependency Injection, Aspect‑Oriented Programming, and transaction management, while illustrating each concept with diagrams and practical code examples for Java developers.

Backend DevelopmentJavaaop
0 likes · 7 min read
Master Spring’s Core: IoC, DI, AOP & Transaction Explained
Architect
Architect
Sep 14, 2025 · Backend Development

Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide

This article explains the fundamental differences between Spring MVC interceptors and servlet filters, provides complete Java code examples for both, shows how to configure them in Spring and web.xml, and summarizes when to choose each approach for request handling and AOP-like functionality.

InterceptorJavaSpring MVC
0 likes · 11 min read
Interceptor vs Filter in Spring MVC: Key Differences, Code Samples, and Usage Guide
macrozheng
macrozheng
Sep 12, 2025 · Backend Development

Automate User and Order IDs in Spring Boot Logs with MDC and AOP

This guide shows how to automatically inject userId and orderId into Spring Boot log messages by defining log placeholders, using ThreadLocal, creating a custom @UserLog annotation, and applying a Spring AOP aspect that populates MDC, dramatically simplifying logging in e‑commerce systems.

JavaSpring Bootaop
0 likes · 8 min read
Automate User and Order IDs in Spring Boot Logs with MDC and AOP
Su San Talks Tech
Su San Talks Tech
Sep 9, 2025 · Backend Development

Why @Transactional Fails: 13 Hidden Pitfalls and How to Fix Them

Spring’s @Transactional annotation often appears simple, yet it can silently fail due to unnecessary usage, scope issues, proxy limitations, propagation settings, exception handling, and bean management, leading to unexpected non‑rollback behavior; this article categorizes thirteen common pitfalls and demonstrates each with concrete code examples.

Javaaopexceptionhandling
0 likes · 18 min read
Why @Transactional Fails: 13 Hidden Pitfalls and How to Fix Them
Su San Talks Tech
Su San Talks Tech
Sep 2, 2025 · Fundamentals

Mastering Finite State Machines with Spring Statemachine: A Complete Guide

Learn the fundamentals of finite state machines, explore their core concepts and four key elements, and see how to implement and persist a Spring Statemachine for order processing with detailed code examples, diagrams, and troubleshooting tips, while also understanding common pitfalls and best practices.

BackendJavaPersistence
0 likes · 26 min read
Mastering Finite State Machines with Spring Statemachine: A Complete Guide
Architecture Digest
Architecture Digest
Aug 29, 2025 · Backend Development

Eliminate Repetitive Common Fields in Java Backends with MyBatis-Plus, AOP, and JWT

This article explains how to automate the handling of common entity fields such as creation time, update time, and user identifiers in Java backend services by using MyBatis-Plus automatic filling, custom AOP aspects, multi‑data‑source configuration, distributed ID generation, and auditing techniques, dramatically reducing boiler‑plate code and bugs.

AuditingAutomatic Field FillingJava
0 likes · 9 min read
Eliminate Repetitive Common Fields in Java Backends with MyBatis-Plus, AOP, and JWT
Architect's Tech Stack
Architect's Tech Stack
Aug 28, 2025 · Backend Development

Unlock Spring Boot’s Hidden Power: Built‑in Tools Every Backend Engineer Should Master

This article walks through Spring Boot’s most useful built‑in features—including request logging, content‑caching wrappers, OncePerRequestFilter, AOP utilities, starter auto‑configuration, flexible property binding, async scheduling, Actuator monitoring, and SpEL expressions—showing how to apply them with concise code examples to boost productivity and reliability.

ActuatorFiltersSpEL
0 likes · 14 min read
Unlock Spring Boot’s Hidden Power: Built‑in Tools Every Backend Engineer Should Master
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 27, 2025 · Backend Development

5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3

This article explains why masking sensitive data such as ID numbers, phone numbers, and bank cards is essential, then demonstrates five practical Spring Boot 3 solutions—including custom JsonSerializer, Jackson modules, AOP, ResponseBodyAdvice, and JsonFilter—complete with code examples and output screenshots.

JacksonSpring Bootaop
0 likes · 8 min read
5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3
Architect
Architect
Aug 23, 2025 · Backend Development

How to Build Scalable Business Operation Logging with AOP, SpEL, and Binlog

This article explores a step‑by‑step evolution of business operation logging—from a simple AOP‑annotation approach, through enriched SpEL expressions, to a robust Binlog‑based solution with time‑window aggregation—highlighting benefits, challenges, code examples, and architectural diagrams for backend developers.

Backend ArchitectureBinlogSpEL
0 likes · 18 min read
How to Build Scalable Business Operation Logging with AOP, SpEL, and Binlog
Java Web Project
Java Web Project
Aug 14, 2025 · Backend Development

Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation

The article explains how inconsistent API return types, missing error handling, irrelevant or complex parameters, and lack of proper result objects lead to maintenance headaches, and demonstrates a disciplined approach using a generic ResultBean, standardized controller conventions, and Spring AOP for logging and exception handling.

BackendControllerJava
0 likes · 11 min read
Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation
macrozheng
macrozheng
Aug 8, 2025 · Backend Development

Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP

This guide covers evaluating engineer hourly wages, interview self‑introduction tips, local vs distributed cache choices, ThreadLocal usage, memory‑leak detection with MAT, deadlock troubleshooting, Spring Bean lifecycle, AOP implementation, and Redis‑based distributed locks, plus resources for Spring Boot projects.

JavaThreadLocalaop
0 likes · 20 min read
Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 6, 2025 · Backend Development

Dynamic Business Rule Validation in Spring Boot 3 Using AOP

This article demonstrates how to decouple business logic from validation in Spring Boot 3 by creating a custom @BusinessValidation annotation, defining rule interfaces, implementing concrete validators, and using an AOP aspect to execute them with configurable fast‑fail and exception handling, complete with code examples and testing.

BackendCustom AnnotationDynamic Validation
0 likes · 9 min read
Dynamic Business Rule Validation in Spring Boot 3 Using AOP
Selected Java Interview Questions
Selected Java Interview Questions
Jul 24, 2025 · Backend Development

Unlock Spring Boot’s Hidden Power: 9 Built‑In Features Every Backend Dev Needs

This article walks through nine essential Spring Boot built‑in capabilities—including request logging, content caching, filter execution control, AOP utilities, starter auto‑configuration, flexible property binding, async/scheduled tasks, Actuator monitoring, and SpEL expressions—showing how they boost backend development productivity without extra dependencies.

ActuatorAsyncBackend Development
0 likes · 13 min read
Unlock Spring Boot’s Hidden Power: 9 Built‑In Features Every Backend Dev Needs
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 21, 2025 · Backend Development

Master Dynamic Data Permissions in Spring Boot 3 with Custom Annotations & AOP

This article demonstrates how to implement flexible, decoupled data permission control in Spring Boot 3 by defining a @DataPermission annotation, creating strategy classes for different scopes, wiring them through an AOP aspect, and integrating the solution with JPA entities, MyBatis mappers, and comprehensive test cases.

Custom AnnotationData PermissionJava
0 likes · 13 min read
Master Dynamic Data Permissions in Spring Boot 3 with Custom Annotations & AOP
Architect's Guide
Architect's Guide
Jul 19, 2025 · Backend Development

Mastering Unified Login, Interceptors, and Exception Handling in Spring Boot

This tutorial walks through implementing unified user login verification, request interception, global exception handling, and a consistent response format in Spring Boot using AOP, HandlerInterceptor, @ControllerAdvice, and ResponseBodyAdvice, complete with code examples and architectural explanations.

Spring BootUnified responseaop
0 likes · 20 min read
Mastering Unified Login, Interceptors, and Exception Handling in Spring Boot
Java Captain
Java Captain
Jul 10, 2025 · Backend Development

Mastering AOP in Spring Boot: From Basics to Practical Code

This article explains Aspect Oriented Programming, contrasts it with Object Oriented Programming, illustrates cross‑cutting concerns with real‑world examples, and provides a step‑by‑step guide—including Maven dependencies, annotation definitions, and execution expressions—to implement AOP in a Spring Boot application.

Aspect Oriented ProgrammingBackend DevelopmentJava
0 likes · 6 min read
Mastering AOP in Spring Boot: From Basics to Practical Code
Top Architect
Top Architect
Jul 8, 2025 · Backend Development

How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal

This article explains how to protect time‑consuming business operations using a Redis‑based distributed lock implemented with a custom annotation, Spring AOP interception, automatic lock renewal via a scheduled executor, and proper lock release, ensuring data consistency across concurrent requests.

aopconcurrencydistributed-lock
0 likes · 14 min read
How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal
Cognitive Technology Team
Cognitive Technology Team
Jul 8, 2025 · Backend Development

Why Your Spring @Transactional Doesn’t Rollback: AOP Aspect Order Conflict Explained

An in‑depth analysis of a Spring transaction failure caused by a custom AOP aspect interfering with the default TransactionInterceptor, detailing the symptom, root cause, and step‑by‑step solutions—including adjusting aspect order, rethrowing exceptions, and manual rollback—to ensure reliable transaction management.

Aspect PriorityException Handlingaop
0 likes · 8 min read
Why Your Spring @Transactional Doesn’t Rollback: AOP Aspect Order Conflict Explained
IT Services Circle
IT Services Circle
Jul 6, 2025 · Backend Development

Must‑Know Spring & Java Interview Questions from Xiaomi Car Hiring

The article first marvels at the record‑breaking sales of Xiaomi's YU7 electric SUV, then provides a comprehensive set of Java and Spring interview questions—including B‑tree differences, MySQL hash indexes, ReentrantLock internals, Spring's circular‑dependency resolution, AOP principles, and Spring Cloud components—to help candidates prepare for Xiaomi's upcoming campus recruitment.

Javaaopinterview
0 likes · 24 min read
Must‑Know Spring & Java Interview Questions from Xiaomi Car Hiring
Architect
Architect
Jul 5, 2025 · Backend Development

Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java

Learn how to design and implement a Redis-based distributed lock in Java using custom annotations, AOP interception, and a scheduled executor to automatically extend lock expiration, ensuring safe concurrent access to critical resources while handling timeouts, retries, and thread interruptions.

Javaaopconcurrency
0 likes · 12 min read
Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java
Java Architect Essentials
Java Architect Essentials
Jul 4, 2025 · Backend Development

5 Common Spring Transaction Pitfalls and How to Fix Them

This article explains five frequent scenarios where Spring @Transactional fails—such as internal method calls, non‑public methods, swallowed exceptions, final/static methods, and unsupported MySQL engines—and provides concrete solutions and best‑practice rules for reliable transaction management.

BackendJavaaop
0 likes · 9 min read
5 Common Spring Transaction Pitfalls and How to Fix Them
Architect
Architect
Jul 3, 2025 · Backend Development

Eliminate Repetitive Common Fields in Java Order Services with MyBatis-Plus, AOP, and JWT

This article presents a production‑tested, six‑step automation strategy—combining MyBatis‑Plus auto‑fill, AOP interceptors, JWT‑based user retrieval, multi‑data‑source handling, distributed ID generation, and audit logging—to completely remove manual maintenance of common fields like create_time and update_by in Java order modules, boosting efficiency and reducing bugs.

Code Optimizationaopautomatic-fill
0 likes · 9 min read
Eliminate Repetitive Common Fields in Java Order Services with MyBatis-Plus, AOP, and JWT
Top Architect
Top Architect
Jun 18, 2025 · Backend Development

Unlock Spring Boot’s Hidden Power: Master Built‑in Features for Faster Development

This article explores Spring Boot’s powerful built‑in utilities—including request logging, content caching, once‑per‑request filters, AOP helpers, starter auto‑configuration, flexible property binding, asynchronous execution, Actuator monitoring, and SpEL expressions—showing how they streamline development, improve maintainability, and boost production‑grade reliability.

AsyncBackend DevelopmentConfiguration
0 likes · 15 min read
Unlock Spring Boot’s Hidden Power: Master Built‑in Features for Faster Development
Architect's Guide
Architect's Guide
Jun 15, 2025 · Backend Development

Mastering Read‑Write Splitting in Spring Boot: A Complete Guide

This article explains how to implement database read‑write separation in a Spring Boot application by configuring master and slave data sources, creating a routing datasource, managing thread‑local context, and using an AOP‑based annotation to switch between read and write operations.

DataSource RoutingJavaSpring Boot
0 likes · 10 min read
Mastering Read‑Write Splitting in Spring Boot: A Complete Guide
Java Tech Enthusiast
Java Tech Enthusiast
Jun 9, 2025 · Backend Development

Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT

This article presents a production‑tested, six‑step solution for automatically handling common entity fields such as createTime, updateTime, createUser, and updateUser in Java backend systems, covering MyBatis‑Plus auto‑fill, AOP interception, multi‑data‑source adaptation, distributed ID generation, pitfalls avoidance, performance tuning, and audit logging.

Automatic Field FillingBackend DevelopmentJava
0 likes · 9 min read
Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 9, 2025 · Backend Development

How to Dynamically Enable/Disable Spring Boot Controllers with AOP, Interceptors, and Custom Mappings

This article explains four practical ways to control the availability of Spring Boot controller endpoints at runtime—using @ConditionalOnProperty, a custom AOP annotation, a HandlerInterceptor, and a custom RequestMappingHandlerMapping—detailing code examples, configuration, advantages, and trade‑offs.

Backend DevelopmentCustom MappingInterceptor
0 likes · 9 min read
How to Dynamically Enable/Disable Spring Boot Controllers with AOP, Interceptors, and Custom Mappings
Java Web Project
Java Web Project
Jun 4, 2025 · Backend Development

How to Eliminate Repetitive Common Fields in Java Order Services with MyBatis‑Plus and AOP

This article analyzes the pain points of manually maintaining common fields in order‑related entities and presents a production‑tested solution that combines MyBatis‑Plus automatic filling, custom AOP annotations, multi‑data‑source handling, distributed ID generation, and auditing to dramatically reduce boilerplate code and bugs.

AuditingAutomatic Field FillBackend
0 likes · 9 min read
How to Eliminate Repetitive Common Fields in Java Order Services with MyBatis‑Plus and AOP
Code Ape Tech Column
Code Ape Tech Column
May 26, 2025 · Backend Development

Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT

This article presents a production‑validated solution that combines MyBatis‑Plus auto‑fill, AOP, JWT, multi‑data‑source handling, distributed ID generation, performance tuning, and audit logging to eliminate repetitive maintenance of common fields such as createTime, updateTime, createUser, and updateUser in Java backend order services.

AutomationBackendJava
0 likes · 9 min read
Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT
Architecture Digest
Architecture Digest
May 21, 2025 · Backend Development

Automating Common Entity Fields in Java Backend with MyBatis-Plus, AOP, and JWT

This article presents a production‑tested solution for automatically handling common entity fields such as createTime, updateTime, createUser, and updateUser in Java backend systems, combining MyBatis‑Plus auto‑fill, AOP interceptors, custom annotations, multi‑datasource support, distributed ID generation, and auditing techniques to eliminate repetitive code and reduce bugs.

aopmybatis-plus
0 likes · 9 min read
Automating Common Entity Fields in Java Backend with MyBatis-Plus, AOP, and JWT
Code Ape Tech Column
Code Ape Tech Column
May 20, 2025 · Backend Development

Dynamic Chain of Responsibility in Spring: A Practical Implementation

This article explains how to split a multi‑function OpenAPI endpoint into independent steps using the responsibility‑chain pattern in Spring, detailing the abstract component, context sharing, bean retrieval via ApplicationContext, and a controller that dynamically orders execution through a query parameter, with full code examples.

Chain of ResponsibilityJavaLiteFlow
0 likes · 9 min read
Dynamic Chain of Responsibility in Spring: A Practical Implementation
Selected Java Interview Questions
Selected Java Interview Questions
May 14, 2025 · Backend Development

Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management

This article presents a comprehensive guide to implementing full‑chain log tracing, unified exception handling, permission interception, request latency monitoring, and standardized log formats in enterprise‑level Java projects using Spring AOP, thread‑local context, and Redis caching.

SecurityThreadLocalaop
0 likes · 23 min read
Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management
Java Tech Enthusiast
Java Tech Enthusiast
May 14, 2025 · Backend Development

Understanding SpringBoot Interceptors: Filters, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter

This article introduces the six main types of interceptors in SpringBoot—Filter, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter—explaining their typical use‑cases, implementation details, common pitfalls, and best‑practice ordering to help developers choose the right tool for each scenario.

Backend DevelopmentInterceptorJava
0 likes · 8 min read
Understanding SpringBoot Interceptors: Filters, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter
Su San Talks Tech
Su San Talks Tech
May 9, 2025 · Backend Development

Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign

This article explores the hierarchy of Spring Boot interception mechanisms—Filter, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter—detailing their typical use cases, implementation code, pitfalls, and best‑practice ordering, while providing practical tips and performance monitoring advice for robust backend development.

InterceptorJavaSpring Boot
0 likes · 8 min read
Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 6, 2025 · Backend Development

Why @Transactional Fails with @Async in Spring Boot 3 – A Deep Dive

This article explains how @Transactional and @Async normally cooperate in Spring Boot, demonstrates cases where the transaction does not roll back when @EnableAsync order is changed, analyzes the underlying AOP proxy creation and bean post‑processor execution order, and introduces new Spring 6.2 transaction‑rollback configuration options.

AsyncSpring Bootaop
0 likes · 9 min read
Why @Transactional Fails with @Async in Spring Boot 3 – A Deep Dive
Java Captain
Java Captain
May 2, 2025 · Databases

Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations

This article demonstrates how to use SpringBoot 3.0.4 with AOP and a custom @DataSource annotation to dynamically switch between MySQL master and slave databases, ensuring high availability by automatically falling back to the master when a slave fails, and provides configuration and code examples for multiple data sources.

Database SwitchingSpringBootaop
0 likes · 14 min read
Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 1, 2025 · Backend Development

Master Spring Boot TargetSource: Custom, HotSwappable, Pooled & More

This article explains Spring Boot's TargetSource mechanism, covering the default SingletonTargetSource and demonstrating how to implement custom, hot‑swappable, pooled, prototype, and thread‑local TargetSources with full code examples and execution results, helping developers manage bean instances dynamically in AOP proxies.

Backend DevelopmentJavaSpring Boot
0 likes · 8 min read
Master Spring Boot TargetSource: Custom, HotSwappable, Pooled & More
Java Tech Enthusiast
Java Tech Enthusiast
Apr 29, 2025 · Backend Development

Implementing Data Isolation with MyBatis Interceptor and Custom Annotations

The article describes how to enforce environment‑based data isolation in a shared database by adding an env column, using a MyBatis interceptor to inject and filter this field at runtime, and employing a custom @InvokeChainSkipEnvRule annotation with AOP to selectively bypass the rule, keeping existing code untouched.

Custom AnnotationData IsolationInterceptor
0 likes · 9 min read
Implementing Data Isolation with MyBatis Interceptor and Custom Annotations
Architect
Architect
Apr 12, 2025 · Backend Development

Secure Spring Boot APIs with Hybrid AES‑RSA Encryption, Transparent Request Wrappers, and Response‑Encryption AOP

This article walks through a complete solution for protecting data in Spring Boot applications, covering symmetric, asymmetric, and hybrid encryption schemes, utility classes for AES and RSA, a custom HttpServletRequestWrapper to enable multiple reads of the request body, a filter that transparently decrypts incoming parameters, and an AOP‑based response‑encryption mechanism triggered by a custom annotation.

AESRSASecurity
0 likes · 45 min read
Secure Spring Boot APIs with Hybrid AES‑RSA Encryption, Transparent Request Wrappers, and Response‑Encryption AOP
Java Architect Essentials
Java Architect Essentials
Apr 10, 2025 · Backend Development

Master Dynamic Data Source Switching in SpringBoot: A Step‑by‑Step Guide

This article walks through the complete process of implementing dynamic data source switching in a SpringBoot application, covering the core concepts of thread‑local context, abstract routing, custom annotations with AOP, configuration, code examples, and important considerations such as transaction management and performance.

JavaSpringBootThreadLocal
0 likes · 6 min read
Master Dynamic Data Source Switching in SpringBoot: A Step‑by‑Step Guide
Top Architect
Top Architect
Apr 9, 2025 · Backend Development

Spring Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AOP Utilities

This article provides a comprehensive guide to Spring's built‑in utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils—showing their purpose, typical usage patterns, and example method signatures for developers working on Java backend projects.

JavaReflectionaop
0 likes · 17 min read
Spring Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AOP Utilities
Java Captain
Java Captain
Apr 9, 2025 · Backend Development

Implementing Dynamic MySQL Master‑Slave Data Source Switching in SpringBoot with AOP and Custom Annotations

This tutorial explains how to use SpringBoot, AOP, and a custom @DataSource annotation to dynamically switch between MySQL master and slave databases—covering configuration, code implementation, multiple slave handling, and an Oracle example—to ensure high availability and flexible data source management.

JavaMaster‑SlaveMulti-DataSource
0 likes · 13 min read
Implementing Dynamic MySQL Master‑Slave Data Source Switching in SpringBoot with AOP and Custom Annotations
Selected Java Interview Questions
Selected Java Interview Questions
Apr 2, 2025 · Backend Development

Implementing Environment-Based Data Isolation in MyBatis with Custom Interceptors and Annotations

This article describes a practical approach to achieve environment-based data isolation in a Java application by adding an 'env' field to tables, using a custom MyBatis interceptor to rewrite SQL, and defining annotations with AOP to control environment filtering, while discussing challenges and refactoring considerations.

Custom InterceptorData IsolationMyBatis
0 likes · 12 min read
Implementing Environment-Based Data Isolation in MyBatis with Custom Interceptors and Annotations
Java Backend Technology
Java Backend Technology
Mar 31, 2025 · Backend Development

Boost Database Query Performance with Spring AOP: Parallel IN Splitting Technique

This article explains how to improve slow PostgreSQL IN queries caused by large parameter lists by defining a custom Spring AOP annotation that automatically splits the parameter set, runs the sub‑queries concurrently in multiple threads, and merges the results back together, complete with code examples and usage guidelines.

Database Optimizationannotationaop
0 likes · 11 min read
Boost Database Query Performance with Spring AOP: Parallel IN Splitting Technique
Java Backend Technology
Java Backend Technology
Mar 17, 2025 · Backend Development

Mastering Business Operation Logging: From AOP to Binlog with Spring

This article explores comprehensive strategies for capturing business operation logs in a Spring‑based system, comparing three solutions—from a simple AOP‑annotation approach, through an enhanced AOP + SpEL method, to a robust Binlog‑plus‑time‑window architecture—while weighing their advantages, drawbacks, and implementation details.

BackendBinlogSpEL
0 likes · 16 min read
Mastering Business Operation Logging: From AOP to Binlog with Spring
Lobster Programming
Lobster Programming
Mar 13, 2025 · Backend Development

Why Spring @Transactional Sometimes Fails: 12 Common Pitfalls and Fixes

This article explains how Spring's declarative transaction management works, why the @Transactional annotation can unexpectedly become ineffective, and presents twelve typical scenarios—such as internal method calls, non‑public methods, final/static modifiers, proxy issues, and incorrect propagation settings—along with practical solutions to ensure reliable transaction handling.

JavaSpringBootaop
0 likes · 12 min read
Why Spring @Transactional Sometimes Fails: 12 Common Pitfalls and Fixes
Code Ape Tech Column
Code Ape Tech Column
Mar 12, 2025 · Backend Development

AviatorScript: Features, Usage, and Spring Boot Integration for Expression Evaluation and Validation

This article introduces AviatorScript, a lightweight high‑performance JVM‑based scripting language, outlines its core features and limitations, demonstrates how to add it to a Maven project, shows expression evaluation, variable handling, custom functions, script files, and provides a practical Spring Boot AOP validation example with full code snippets.

Expression EngineJavaSpring Boot
0 likes · 18 min read
AviatorScript: Features, Usage, and Spring Boot Integration for Expression Evaluation and Validation