Tagged articles

Spring AOP

54 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Jun 26, 2026 · Backend Development

Controlling Execution Order in Multi‑Layer Spring AOP Aspect Nesting

When a Spring project uses more than two AOP aspects, the resulting multi‑layer nesting can cause sensitive data leaks, excessive logging, missed alerts, inconsistent responses, and random bugs; this article explains why ordering issues occur, how the onion model works, and provides concrete configuration strategies to achieve deterministic execution order.

Aspect OrderExecution ChainMulti-layer Nesting
0 likes · 15 min read
Controlling Execution Order in Multi‑Layer Spring AOP Aspect Nesting
Java Tech Workshop
Java Tech Workshop
Jun 25, 2026 · Backend Development

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

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

AnnotationJavaPointcut
0 likes · 15 min read
Mastering Spring AOP Pointcut Expressions: Precise execution and @annotation Matching Techniques
Java Architect Essentials
Java Architect Essentials
May 25, 2026 · Backend Development

AOP Aspect Order Mistakes? Stop Misusing @Order – A Rule That Cuts Interview Errors to Zero

A real‑world incident where mis‑ordered Spring AOP aspects caused payment callbacks to report success while the transaction rolled back leads to a concise rule—smaller @Order values have higher priority—plus pitfalls, three common scenarios, and a four‑step debugging guide that eliminates interview mistakes.

@OrderAspectJJava
0 likes · 8 min read
AOP Aspect Order Mistakes? Stop Misusing @Order – A Rule That Cuts Interview Errors to Zero
Java Tech Workshop
Java Tech Workshop
Apr 17, 2026 · Backend Development

Spring AOP Proxy Modes: Differences Between CGLIB and JDK Dynamic Proxies

This article explains the two proxy mechanisms used by Spring AOP—JDK dynamic proxy and CGLIB—detailing their core principles, required conditions, code examples, performance trade‑offs, how Spring chooses between them, common pitfalls that cause proxy failure, and practical solutions.

CGLIB proxyJDK Dynamic ProxyJava
0 likes · 17 min read
Spring AOP Proxy Modes: Differences Between CGLIB and JDK Dynamic Proxies
java1234
java1234
Apr 7, 2026 · Backend Development

What’s Under the Hood of Spring AOP? A Deep Dive into Its Core Mechanisms

Spring AOP enables cross‑cutting concerns like logging and transactions without altering business code by leveraging dynamic proxies and method interceptor chains, and this article explains its core concepts, proxy selection (JDK vs CGLIB), call‑chain flow, key source classes, and provides a complete Java example.

AspectJCGLIBDynamic Proxy
0 likes · 8 min read
What’s Under the Hood of Spring AOP? A Deep Dive into Its Core Mechanisms
Selected Java Interview Questions
Selected Java Interview Questions
Jan 15, 2026 · Backend Development

How to Build a Lightweight, Annotation‑Driven Rate Limiter with Spring AOP and Guava

This article explains how to create a non‑intrusive, configurable rate‑limiting component for Spring services by combining Spring AOP, a custom @RateLimit annotation, and Google Guava's RateLimiter, covering token‑bucket fundamentals, API usage, implementation details, common AOP pitfalls, and migration to distributed limiting.

AnnotationGuava RateLimiterJava
0 likes · 12 min read
How to Build a Lightweight, Annotation‑Driven Rate Limiter with Spring AOP and Guava
Su San Talks Tech
Su San Talks Tech
Oct 20, 2025 · Backend Development

6 Proven Ways to Accurately Measure API Latency in Java Applications

This article explains why measuring API response time is crucial for performance optimization, monitoring, and user experience, and presents six practical methods—from simple System.currentTimeMillis() calls to Spring AOP, interceptors, filters, and production‑grade Micrometer/APM tools—complete with code examples, pros, cons, and suitable scenarios.

API latencyAPMJava performance
0 likes · 23 min read
6 Proven Ways to Accurately Measure API Latency in Java Applications
Architect's Tech Stack
Architect's Tech Stack
Sep 25, 2025 · Backend Development

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

This article explains how to eliminate manual logging of user and order identifiers in Java e‑commerce services by using Log4j2 placeholders, ThreadLocal, MDC, a custom @UserLog annotation, and Spring AOP to automatically enrich log messages with these contextual fields.

AnnotationJava loggingMDC
0 likes · 9 min read
Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC
IT Services Circle
IT Services Circle
Sep 7, 2025 · Backend Development

Master Java Backend Interview: JVM, ClassLoaders, AOP, and More

This article guides job seekers through the autumn recruitment season, highlights bank hiring timelines and English requirements, and then provides a comprehensive Java interview Q&A covering JVM memory structures, object allocation failures, the parent‑delegation model, message‑queue usage, Spring AOP principles, and database string type differences.

JVMJavaMessage Queue
0 likes · 17 min read
Master Java Backend Interview: JVM, ClassLoaders, AOP, and More
Sanyou's Java Diary
Sanyou's Java Diary
Aug 7, 2025 · Backend Development

How Easy-Cache Solves Distributed Cache Pain Points with Multi-Level Design

This article introduces Easy-Cache, a Spring-AOP based caching framework that provides annotation-driven, multi-level Redis and local cache with dynamic upgrade/downgrade, elastic expiration, and Lua-script-ensured data consistency, eliminating repetitive cache code and handling failures, cache penetration, breakdown, and eventual consistency challenges.

CacheDistributed LockLua
0 likes · 18 min read
How Easy-Cache Solves Distributed Cache Pain Points with Multi-Level Design
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 6, 2025 · Backend Development

Mastering Distributed Caching: Easy-Cache’s Multi‑Level Dynamic Upgrade and Consistency

This article introduces Easy-Cache, a Spring‑AOP based caching framework that eliminates repetitive cache code by offering annotation‑driven operations, multi‑level Redis and local caches, dynamic upgrade/downgrade, elastic expiration, and Lua‑script‑backed consistency mechanisms for high‑availability distributed systems.

LuaRedisSpring AOP
0 likes · 18 min read
Mastering Distributed Caching: Easy-Cache’s Multi‑Level Dynamic Upgrade and Consistency
Programmer XiaoFu
Programmer XiaoFu
Jun 4, 2025 · Backend Development

Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity

This article walks through five concrete implementations for per‑minute API call counting—fixed window, lazy sliding window, Spring AOP, Redis time‑series, and Micrometer + Prometheus—detailing their design, code, trade‑offs, benchmark results, memory usage, and real‑world deployment tips.

RedisSliding WindowSpring AOP
0 likes · 25 min read
Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity
Java Tech Enthusiast
Java Tech Enthusiast
May 17, 2025 · Backend Development

How to Implement Distributed API Debounce in Java with Redis and Redisson

This article explains why API debounce is needed in web back‑ends, identifies the types of endpoints that require it, outlines how to detect duplicate requests, and provides two concrete distributed solutions—shared Redis cache and Redisson lock—complete with annotation design, key generation logic, and full Java code examples.

API DebounceDistributed LockJava
0 likes · 15 min read
How to Implement Distributed API Debounce in Java with Redis and Redisson
Lin is Dream
Lin is Dream
May 15, 2025 · Backend Development

How to Build a Pluggable Operation Log System with AOP and Annotations in Java

This article explains a complete, reusable solution for recording operation logs in Java backend applications using Spring AOP, custom annotations, callback interfaces, and a user‑adapter to bridge third‑party logging libraries with the main program, enabling flexible storage and auditing.

AnnotationCallbackJava
0 likes · 8 min read
How to Build a Pluggable Operation Log System with AOP and Annotations in Java
Architecture Digest
Architecture Digest
Jan 10, 2025 · Backend Development

Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal

This article explains how to protect time‑consuming business operations and critical data by designing a Redis‑based distributed lock using custom annotations, Spring AOP, and a ScheduledExecutorService that automatically extends the lock’s expiration to avoid premature release.

Distributed LockJavaScheduledExecutorService
0 likes · 11 min read
Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 7, 2025 · Backend Development

Master Spring AOP’s @DeclareParents: Dynamic Interface Injection in Spring Boot 3

This article explains how Spring AOP’s @DeclareParents introduces new interfaces to proxied beans at runtime, walks through defining interfaces, implementations, aspect configuration, testing with Spring Boot 3, and also covers perthis and pertarget aspect instantiation models for fine‑grained lifecycle control.

AspectJDynamic InterfaceSpring AOP
0 likes · 8 min read
Master Spring AOP’s @DeclareParents: Dynamic Interface Injection in Spring Boot 3
DaTaobao Tech
DaTaobao Tech
Aug 2, 2024 · Backend Development

Limitations of Spring AOP and Java Agent Solutions for the Diagnose Framework

Spring AOP cannot advise non‑bean, static, or internally‑called methods, limiting its use for the Diagnose framework, so the article proposes a Java Agent that transforms bytecode at startup, bypasses proxy constraints, and reliably intercepts private, static, and self‑invoked methods across separate class loaders.

ByteBuddyJavaJava Agent
0 likes · 13 min read
Limitations of Spring AOP and Java Agent Solutions for the Diagnose Framework
Architect
Architect
Aug 1, 2024 · Backend Development

How a Structured Refactor Cut Game Service MQ Calls by Up to 80%

Facing a 600k/min rate‑limit alert on a game’s product‑update MQ, the team analyzed scattered consumers, designed a new Flyweight‑Strategy architecture with Spring AOP idempotency, executed a three‑phase migration, and achieved a 50‑80% reduction in downstream interface calls.

MQ RefactorMicroservicesPerformance Optimization
0 likes · 12 min read
How a Structured Refactor Cut Game Service MQ Calls by Up to 80%
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 1, 2024 · Backend Development

Why Spring AOP Sometimes Fails to Create Proxies and How to Fix It

This article explains Spring AOP’s core concepts, shows how proxies are normally created with @EnableAspectJAutoProxy, and details several edge cases—such as implementing Advice, Pointcut, Advisor, or using special bean names—where Spring will not generate a proxy, providing code examples and the resulting output for each scenario.

AspectJSpring AOPspringboot
0 likes · 8 min read
Why Spring AOP Sometimes Fails to Create Proxies and How to Fix It
Architect
Architect
Jun 19, 2024 · Information Security

Implementing RSA and AES Hybrid Encryption for API Security in Java

This article describes a real‑world API security incident, explains the fundamentals of asymmetric RSA and symmetric AES encryption, and provides a complete Java implementation—including a hybrid encryption strategy, custom @RequestRSA annotation, Spring AOP decryption aspect, and utility classes—to securely transmit and automatically decrypt request parameters.

AESEncryptionJava
0 likes · 23 min read
Implementing RSA and AES Hybrid Encryption for API Security in Java
Java Tech Enthusiast
Java Tech Enthusiast
Jun 11, 2024 · Backend Development

Hot‑Pluggable AOP: Dynamic Advice Management in Spring

The article shows how to implement a hot‑plug AOP system in Spring that lets users enable or disable logging at runtime by scanning, registering, and deregistering Advice/Advisor/Pointcut beans through the bean factory, demonstrated with a REST endpoint that adds or removes a logging interceptor.

Dynamic PluginJavaSpring AOP
0 likes · 9 min read
Hot‑Pluggable AOP: Dynamic Advice Management in Spring
Code Ape Tech Column
Code Ape Tech Column
May 11, 2024 · Information Security

Hybrid RSA‑AES Encryption for Secure API Parameter Transmission in Java

This article recounts a leaderboard data breach caused by tampered Base64 request parameters, then details a hybrid RSA‑AES encryption strategy—using RSA to protect the AES key, IV and timestamp while AES encrypts the actual payload—along with Java implementations, key‑generation utilities, and a Spring AOP aspect for automatic decryption, providing a comprehensive guide to securing API communications.

API SecurityJavaSpring AOP
0 likes · 20 min read
Hybrid RSA‑AES Encryption for Secure API Parameter Transmission in Java
Java Architect Essentials
Java Architect Essentials
Feb 28, 2024 · Backend Development

Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin

This article explains why a custom business risk‑control (rate‑limiting) component is needed for AI‑intensive services, compares open‑source solutions, and provides a complete backend implementation using Redis+Lua scripts, Kotlin code, Spring AOP annotations, and real‑time adjustable rules.

KotlinLuaRedis
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin
Java High-Performance Architecture
Java High-Performance Architecture
Dec 7, 2023 · Backend Development

Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage

This article introduces the Lock4j distributed lock library for Java, outlines its key features and supported backends, provides step‑by‑step Maven dependency setup, Redis configuration, annotation details, and demonstrates both basic and advanced usage patterns including custom executors and lock‑failure strategies.

Distributed LockJavaLock4j
0 likes · 6 min read
Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage
Java Architect Essentials
Java Architect Essentials
Oct 5, 2023 · Backend Development

Understanding and Implementing AOP in Spring Boot: Concepts, Annotations, and Practical Examples

This article explains the fundamentals of Aspect‑Oriented Programming (AOP) in Spring, describes key concepts such as pointcuts, advice, aspects, and weaving, and provides step‑by‑step code examples—including simple and advanced use cases and detailed annotation usage—to help developers integrate AOP effectively into their Spring Boot applications.

AOPJavaSpring AOP
0 likes · 17 min read
Understanding and Implementing AOP in Spring Boot: Concepts, Annotations, and Practical Examples
Top Architect
Top Architect
Jun 13, 2023 · Backend Development

Implementing Business Operation Logging with Spring AOP in a Java Backend

This article explains how to design and implement a business operation logging feature in a Spring Boot application using custom annotations and Spring AOP, covering requirement analysis, pitfalls of a naïve implementation, AOP design, code examples, and testing procedures.

Backend DevelopmentJavaSpring AOP
0 likes · 16 min read
Implementing Business Operation Logging with Spring AOP in a Java Backend
Java High-Performance Architecture
Java High-Performance Architecture
Apr 26, 2023 · Backend Development

How to Build a Robust Redis Distributed Lock with Spring AOP

This article explains why time‑consuming business operations need a distributed lock, walks through using Redis as a lock with Spring AOP, details the lock‑acquire, timeout, and renewal mechanisms, provides full code examples, testing steps, and best‑practice recommendations for reliable concurrency control in Java back‑end services.

Distributed LockJavaRedis
0 likes · 12 min read
How to Build a Robust Redis Distributed Lock with Spring AOP
Top Architect
Top Architect
Oct 20, 2022 · Backend Development

Implementing a Redis Distributed Lock with Spring AOP and Automatic Renewal

This article explains how to implement a Redis-based distributed lock in Spring Boot using custom annotations, AOP interception, and a scheduled executor to automatically renew lock expiration, providing a complete design, code examples, and testing guidance for handling long-running operations safely.

Distributed LockJavaRedis
0 likes · 12 min read
Implementing a Redis Distributed Lock with Spring AOP and Automatic Renewal
Java High-Performance Architecture
Java High-Performance Architecture
Oct 18, 2022 · Backend Development

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

This article explains the design and implementation of a Redis‑based distributed lock using Spring AOP, covering annotation creation, pointcut definition, lock acquisition, automatic renewal via a scheduled thread pool, error handling, and testing to ensure safe concurrent access to critical business data.

Distributed LockJavaRedis
0 likes · 13 min read
How to Implement a Robust Redis Distributed Lock with Spring AOP and Auto‑Renewal
Architecture & Thinking
Architecture & Thinking
Jul 19, 2022 · Backend Development

Master Java Annotations: From Basics to Custom Usage

This article provides a comprehensive guide to Java annotations, covering built‑in annotations, meta‑annotations, retention policies, repeatable annotations, and how to create and apply custom annotations with reflection and AOP for practical use cases.

Custom AnnotationsJavaMeta‑annotations
0 likes · 22 min read
Master Java Annotations: From Basics to Custom Usage
Programmer DD
Programmer DD
Mar 16, 2022 · Backend Development

Implement Custom Annotation Logging with Spring AOP

This guide explains how to create a custom annotation and an Aspect in Spring to capture detailed operation logs—including description, table name, parameters, user info, and execution result—and persist them to a database, covering AOP terminology, configuration styles, and complete code examples.

AspectJJavaLogging
0 likes · 15 min read
Implement Custom Annotation Logging with Spring AOP
Programmer DD
Programmer DD
Feb 16, 2022 · Backend Development

Master Spring AOP: Essential Annotations, Execution Order, and Common Pitfalls

This article revisits the fundamentals of Spring AOP, detailing its core annotations such as @Before, @After, @Around, and their execution sequence, while providing a complete demo project, code examples, and insights into common pitfalls like proxy failures and multi‑aspect ordering.

AspectJBackend DevelopmentJava
0 likes · 9 min read
Master Spring AOP: Essential Annotations, Execution Order, and Common Pitfalls
Java Backend Technology
Java Backend Technology
Dec 21, 2021 · Backend Development

Implement Custom Logging with Spring AOP and Annotations

This guide explains how to create a custom Spring AOP annotation for detailed logging, defines the necessary annotation and aspect classes, shows how to extract method details, parameters and user info, store them in a database, and demonstrates required Spring XML configuration and usage examples.

AspectJJavaSpring AOP
0 likes · 16 min read
Implement Custom Logging with Spring AOP and Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 3, 2021 · Backend Development

Mastering Spring AOP Pointcut Expressions: A Complete Guide

This article explains the syntax and components of Spring AOP pointcut expressions, demonstrates how to use various pointcut designators such as execution, within, this, target, args, @within, @target, @args, and @annotation, and provides practical code examples with advice types.

Backend DevelopmentPointcut ExpressionsSpring AOP
0 likes · 12 min read
Mastering Spring AOP Pointcut Expressions: A Complete Guide
Programmer DD
Programmer DD
Oct 28, 2020 · Operations

How to Build a Lightweight Java Monitoring System with Netdata and Javamelody

This article explains how to set up both server‑level monitoring using Netdata and business‑level monitoring with Spring AOP and Javamelody in a Java e‑commerce application, covering key metrics, code examples, configuration files, and practical screenshots to illustrate the complete solution.

JavaJavamelodyNetdata
0 likes · 9 min read
How to Build a Lightweight Java Monitoring System with Netdata and Javamelody
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 16, 2020 · Backend Development

Understanding Java Proxy Pattern: Static vs Dynamic Proxies, JDK Proxy and CGLIB

This article explains the Java proxy pattern using a real‑world analogy, compares static and dynamic proxies, details implementations with JDK Proxy and CGLIB (including code samples), and discusses how dynamic proxies support the Open‑Closed principle and are applied in Spring AOP for transaction management.

CGLIBDynamic ProxyJDK Proxy
0 likes · 22 min read
Understanding Java Proxy Pattern: Static vs Dynamic Proxies, JDK Proxy and CGLIB
Programmer DD
Programmer DD
Jan 1, 2019 · Backend Development

Deep Dive into Spring AOP: Core Classes, Proxy Mechanics, and Source Code Walkthrough

This article provides a comprehensive analysis of Spring AOP, covering its core classes, multiple proxy mechanisms, annotation‑based configuration in Spring Boot, the differences between Spring Boot 1.x and 2.x AOP settings, and detailed source‑code snippets that illustrate how advisors, pointcuts, and advices are created and applied.

AspectJBackend DevelopmentJava
0 likes · 22 min read
Deep Dive into Spring AOP: Core Classes, Proxy Mechanics, and Source Code Walkthrough
Java Backend Technology
Java Backend Technology
Dec 29, 2016 · Backend Development

Mastering Database Read/Write Splitting with Spring AOP: A Practical Demo

This article explains the concept of read/write splitting in distributed databases, outlines two implementation methods—static dual data sources and dynamic AOP-based switching—provides a complete Spring‑MyBatis demo with configuration files, code snippets, and guidance on setting up master and slave connections.

JavaMaster‑SlaveMyBatis
0 likes · 7 min read
Mastering Database Read/Write Splitting with Spring AOP: A Practical Demo
Java Backend Technology
Java Backend Technology
Sep 22, 2016 · Backend Development

How to Build a Flexible Business Log System with Koala and MyBatis

This article introduces the ufind-businesslog framework, explains its improvements over the original Koala project, and provides step‑by‑step guidance on configuring annotations, Groovy log templates, thread pools, and custom exporters to achieve non‑intrusive, asynchronous business logging in Java applications.

GroovyLoggingMyBatis
0 likes · 14 min read
How to Build a Flexible Business Log System with Koala and MyBatis