Tagged articles

AOP

635 articles · Page 4 of 7
Architecture Digest
Architecture Digest
Apr 21, 2023 · Backend Development

Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal

This article explains how to protect time‑consuming business operations by using Redis as a distributed lock, designing a custom @RedisLock annotation, applying Spring AOP to intercept methods, handling lock acquisition, expiration, renewal via a ScheduledExecutorService, and releasing the lock safely after execution.

AOPRedisSpring Boot
0 likes · 12 min read
Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal
Selected Java Interview Questions
Selected Java Interview Questions
Apr 18, 2023 · Backend Development

Understanding the Spring Bean Lifecycle: Creation, Initialization, Usage, and Destruction

This article explains the complete Spring bean lifecycle—including creation, property filling, initialization, usage, and destruction—detailing how Spring manages object creation, dependency injection, AOP proxy generation, and lifecycle callbacks through various internal phases and extension points.

AOPBean LifecycleSpring
0 likes · 15 min read
Understanding the Spring Bean Lifecycle: Creation, Initialization, Usage, and Destruction
Su San Talks Tech
Su San Talks Tech
Apr 12, 2023 · Backend Development

Build a Switchable SpringBoot Rate Limiter with Guava and Redis

This tutorial walks through creating a reusable SpringBoot starter that combines Guava's local token‑bucket limiter and Redis's distributed limiter, allowing developers to toggle between them via a simple configuration property and integrate the solution seamlessly with AOP and conditional beans.

AOPGuavaRedis
0 likes · 9 min read
Build a Switchable SpringBoot Rate Limiter with Guava and Redis
Architect's Guide
Architect's Guide
Apr 4, 2023 · Backend Development

Implementing Unified User Login, Exception Handling, and Data Response in Spring Boot with AOP and Interceptors

This article demonstrates how to use Spring Boot AOP and HandlerInterceptor to create a unified user login permission check, standardized exception handling with @ControllerAdvice, and consistent JSON response formatting, providing step‑by‑step code examples and configuration details for building robust backend services.

AOPException HandlingInterceptor
0 likes · 19 min read
Implementing Unified User Login, Exception Handling, and Data Response in Spring Boot with AOP and Interceptors
Wukong Talks Architecture
Wukong Talks Architecture
Mar 21, 2023 · Backend Development

Understanding Java Exception Handling: Classification, Bytecode Analysis, Best Practices, and Custom Exceptions

This article provides a comprehensive guide to Java exception handling, covering exception categories, bytecode‑level mechanisms, common pitfalls, Alibaba’s coding standards, best‑practice recommendations, custom exception design, and global handling strategies for RPC and HTTP services in Spring Boot.

AOPException HandlingSpring Boot
0 likes · 29 min read
Understanding Java Exception Handling: Classification, Bytecode Analysis, Best Practices, and Custom Exceptions
Architect's Guide
Architect's Guide
Mar 19, 2023 · Backend Development

Implementing Unified Functionality in Spring Boot: Authentication, Data Formatting, Exception Handling, and Interceptors

This article demonstrates how to build a unified processing module in Spring Boot by using AOP and HandlerInterceptor to centralize user login validation, standardize response formats, handle exceptions globally with @ControllerAdvice, and configure path prefixes, providing complete code examples and implementation details.

AOPException HandlingInterceptor
0 likes · 17 min read
Implementing Unified Functionality in Spring Boot: Authentication, Data Formatting, Exception Handling, and Interceptors
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 16, 2023 · Backend Development

Unlock Non‑Spring AOP with JVM‑Sandbox: A Practical Guide for Java Backend

JVM‑Sandbox provides a non‑intrusive, runtime AOP solution for Java backend applications, enabling developers to instrument code outside the Spring container, record traffic, hot‑fix vulnerabilities, simulate failures, and monitor Spring bean initialization, all through JVMTI, Instrumentation, and event‑driven modules.

AOPInstrumentationJVM
0 likes · 17 min read
Unlock Non‑Spring AOP with JVM‑Sandbox: A Practical Guide for Java Backend
Top Architect
Top Architect
Dec 29, 2022 · Backend Development

Understanding Spring Bean Lifecycle and Circular Dependency Resolution

This article explains the core concepts of the Spring framework—including its container, bean definition readers, bean factories, and three‑level cache mechanism—while detailing how Spring resolves circular dependencies and integrates AOP during bean creation.

AOPBean Lifecycledependency injection
0 likes · 8 min read
Understanding Spring Bean Lifecycle and Circular Dependency Resolution
Su San Talks Tech
Su San Talks Tech
Dec 17, 2022 · Information Security

Integrating Data Permissions into RBAC: A Practical Guide

This article explains how to extend the classic Role‑Based Access Control (RBAC) model with fine‑grained data permissions, detailing rule definition, database design, role‑rule binding, and AOP‑based enforcement, and offers optimization tips such as rule groups for complex scenarios.

AOPData PermissionRBAC
0 likes · 8 min read
Integrating Data Permissions into RBAC: A Practical Guide
Top Architect
Top Architect
Dec 15, 2022 · Databases

Implementing Database Read‑Write Separation with Spring Boot and Dynamic DataSource Routing

This article explains how to achieve database read‑write separation in high‑concurrency scenarios using Spring Boot, Druid connection pool, dynamic DataSource routing, a ThreadLocal context holder, custom annotations, and AOP, providing complete configuration code and usage examples for both read and write operations.

AOPDataSourceRoutingDatabase
0 likes · 12 min read
Implementing Database Read‑Write Separation with Spring Boot and Dynamic DataSource Routing
IT Architects Alliance
IT Architects Alliance
Dec 13, 2022 · Backend Development

Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Principles, Propagation Mechanisms, and Forced Rollback

This article explains how Spring's @EnableTransactionManagement activates transaction support by registering advisors and proxy beans, details the core execution flow of transactional methods, explores various propagation scenarios with code examples, and demonstrates forced rollback and transaction synchronization techniques.

AOPSpringTransactional
0 likes · 10 min read
Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Principles, Propagation Mechanisms, and Forced Rollback
Top Architect
Top Architect
Dec 9, 2022 · Backend Development

Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Flow, Propagation, and Forced Rollback

This article explains how Spring enables transaction management through @EnableTransactionManagement, details the underlying advisor and proxy mechanisms, describes the basic and detailed execution steps, explores propagation types with practical code examples, and shows how to force rollbacks and use TransactionSynchronization for lifecycle callbacks.

AOPRollbackTransaction Management
0 likes · 13 min read
Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Flow, Propagation, and Forced Rollback
转转QA
转转QA
Dec 8, 2022 · Backend Development

Applying AOP to Reduce Coupling in a Data Construction Platform

This article explains how Aspect‑Oriented Programming (AOP) was introduced into a data construction platform to address high development effort, strong business coupling, and maintenance difficulty by isolating cross‑cutting concerns such as logging, thereby improving modularity, development speed, and code maintainability.

AOPSpringaspect-oriented-programming
0 likes · 5 min read
Applying AOP to Reduce Coupling in a Data Construction Platform
ITPUB
ITPUB
Dec 5, 2022 · Information Security

Extending RBAC with Fine-Grained Data Permissions Using AOP

This article explains how to augment the classic Role‑Based Access Control (RBAC) model with row‑level data permissions, detailing rule definition, database design, role‑rule binding, and an AOP‑based implementation for dynamic SQL filtering.

AOPBackend SecurityData Permission
0 likes · 8 min read
Extending RBAC with Fine-Grained Data Permissions Using AOP
Su San Talks Tech
Su San Talks Tech
Nov 22, 2022 · Backend Development

Deep Dive into Spring Transaction: Source Code Walkthrough and Execution Flow

This article walks through the fundamentals of Spring's transaction management, presenting a practical example, detailed execution workflow, and step‑by‑step source‑code analysis—including bean creation, AOP proxy generation, transaction attribute retrieval, transaction start, commit, and rollback – to help developers master Spring transaction internals.

AOPSource Code AnalysisSpring
0 likes · 12 min read
Deep Dive into Spring Transaction: Source Code Walkthrough and Execution Flow
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2022 · Backend Development

Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver

This article presents a comprehensive Spring Boot tutorial on implementing non‑intrusive login authentication using three techniques—Filter, Interceptor, and AOP with custom annotations—plus extensions such as ThreadLocal storage and a Spring MVC argument resolver, complete with project setup, Maven dependencies, and test screenshots.

AOPInterceptorLogin Authentication
0 likes · 13 min read
Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver
Programmer DD
Programmer DD
Nov 15, 2022 · Backend Development

How to Restrict API Access to Internal Services Using Gateway and AOP

This article compares three approaches—microservice isolation, gateway with Redis whitelist, and a gateway‑plus‑AOP header strategy—to enforce internal‑only API access, and provides a complete Spring Cloud implementation with code examples and a diagram.

AOPGatewayMicroservices
0 likes · 6 min read
How to Restrict API Access to Internal Services Using Gateway and AOP
Java Architect Essentials
Java Architect Essentials
Nov 6, 2022 · Backend Development

Implementing a Distributed Redis Lock with AOP and Automatic Renewal in Java

This article explains how to design and implement a distributed lock using Redis, Spring AOP annotations, and a scheduled executor to automatically extend lock expiration, providing complete Java code examples, configuration details, testing procedures, and best‑practice recommendations for handling long‑running business operations safely.

AOPRedisScheduledExecutorService
0 likes · 12 min read
Implementing a Distributed Redis Lock with AOP and Automatic Renewal in Java
Top Architect
Top Architect
Oct 26, 2022 · Backend Development

Implementing Database Read‑Write Splitting with Spring Boot and Dynamic DataSource Routing

This article explains how to achieve database read‑write separation in high‑concurrency Java applications by configuring master and slave data sources, implementing a routing DataSource, managing context with ThreadLocal, defining a custom @DataSourceSwitcher annotation, and applying AOP to switch between read and write operations.

AOPDataSource RoutingMySQL
0 likes · 11 min read
Implementing Database Read‑Write Splitting with Spring Boot and Dynamic DataSource Routing
Java High-Performance Architecture
Java High-Performance Architecture
Oct 15, 2022 · Backend Development

How to Handwrite Spring AOP: From Concepts to Code Implementation

This article walks through the design and implementation of a hand‑written Spring AOP module, covering core concepts such as Advice, Pointcut, weaving, proxy creation, and the integration of these components into a bean lifecycle to enable method‑level enhancements without modifying source code.

AOPaspect-oriented-programmingbackend development
0 likes · 17 min read
How to Handwrite Spring AOP: From Concepts to Code Implementation
Top Architect
Top Architect
Oct 11, 2022 · Backend Development

Implementing Distributed Locks with Redis and AOP in Spring Boot

This article explains how to protect time‑consuming business operations by using Redis as a distributed lock together with Spring AOP, covering annotation design, aspect implementation, lock acquisition, automatic renewal via a scheduled executor, and practical testing examples.

AOPRedisScheduledExecutorService
0 likes · 15 min read
Implementing Distributed Locks with Redis and AOP in Spring Boot
37 Interactive Technology Team
37 Interactive Technology Team
Oct 10, 2022 · Frontend Development

AOP Techniques for Ajax and Jsonp in Front-End Development

The article explains how to use Aspect‑Oriented Programming to globally intercept and rewrite Ajax and JSONP requests—both native and framework based—by extending Function.prototype, overriding DOM methods, and employing ajax‑hook and Axios interceptors, culminating in a runnable demo that redirects traffic from a‑domain to b‑domain.

AJAXAOPJSONP
0 likes · 19 min read
AOP Techniques for Ajax and Jsonp in Front-End Development
Java Backend Technology
Java Backend Technology
Oct 10, 2022 · Backend Development

8 Hidden Spring Transaction Pitfalls That Can Break Your Java Apps

This article reveals ten common Spring transaction pitfalls—including private methods, final modifiers, self‑invocation, missing @Service, wrong propagation, non‑transactional databases, swallowed or wrong exceptions, multi‑threaded calls, and nested transaction rollbacks—that can silently disable transaction management in Java backend projects.

AOPSpringSpringBoot
0 likes · 9 min read
8 Hidden Spring Transaction Pitfalls That Can Break Your Java Apps
Programmer DD
Programmer DD
Oct 9, 2022 · Backend Development

Mastering Java Dynamic Proxies: JDK vs CGLIB Implementation and Pitfalls

This article explains the concepts, advantages, and limitations of Java's JDK dynamic proxy and CGLIB proxy, provides step‑by‑step code examples for user registration validation, compares their mechanisms, and summarizes when to choose each approach in real‑world applications.

AOPBytecodeCGLIB
0 likes · 11 min read
Mastering Java Dynamic Proxies: JDK vs CGLIB Implementation and Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Sep 29, 2022 · Backend Development

Implementing a Redis Distributed Lock with AOP and Automatic Renewal in Spring Boot

This article explains how to protect time‑consuming business operations in a Spring Boot application by creating a custom @RedisLock annotation, using Redis as a distributed lock via AOP, implementing automatic lock renewal with a ScheduledExecutorService, and handling lock release and thread interruption.

AOPScheduledExecutorServiceSpring Boot
0 likes · 11 min read
Implementing a Redis Distributed Lock with AOP and Automatic Renewal in Spring Boot
Top Architect
Top Architect
Sep 24, 2022 · Backend Development

Understanding JDK and CGLIB Dynamic Proxies in Java

This article explains the principles, advantages, and implementation details of Java's JDK dynamic proxy and CGLIB proxy mechanisms, providing step‑by‑step code examples that demonstrate how to enhance method calls such as user registration with validation logic.

AOPCGLIBDynamic Proxy
0 likes · 11 min read
Understanding JDK and CGLIB Dynamic Proxies in Java
Tencent Cloud Developer
Tencent Cloud Developer
Sep 13, 2022 · Databases

Implementing a Transparent Data Encryption Framework for Database Security

The article presents a transparent data‑encryption framework for database security that uses an AOP‑based driver interceptor to rewrite SQL, encrypt/decrypt sensitive fields, manage performance with locks and caching, support configurable algorithms via SPI/YAML, and guide a three‑phase migration with minimal code intrusion.

AOPData MigrationDatabase Security
0 likes · 11 min read
Implementing a Transparent Data Encryption Framework for Database Security
Architect's Guide
Architect's Guide
Aug 30, 2022 · Backend Development

Implementing Database Read‑Write Separation with Spring Boot

This article explains how to achieve database read‑write separation in high‑concurrency Java applications by configuring master‑slave data sources, implementing a routing datasource, managing context with ThreadLocal, and using custom annotations with AOP to switch between read and write databases at runtime.

AOPDataSource RoutingRead-Write Separation
0 likes · 10 min read
Implementing Database Read‑Write Separation with Spring Boot
Su San Talks Tech
Su San Talks Tech
Aug 25, 2022 · Backend Development

Mastering Spring Transactions: From Basics to Advanced Propagation Types

This article explains the origins and purpose of Spring transactions, demonstrates how to quickly set them up with code examples, explores key features and common pitfalls, and provides an in‑depth comparison of the REQUIRED, REQUIRES_NEW, and NESTED propagation types for robust backend development.

AOPMyBatisSpring
0 likes · 21 min read
Mastering Spring Transactions: From Basics to Advanced Propagation Types
Cognitive Technology Team
Cognitive Technology Team
Aug 20, 2022 · Backend Development

Common Pitfalls of Spring Transaction Management and How to Avoid Them

This article explains common pitfalls of Spring's transaction management—including AOP proxy limitations, unchecked exception handling, self‑invocation, asynchronous execution, multiple data sources, and large transaction issues—and provides practical solutions such as using class‑based proxies, configuring rollback rules, and splitting transactions into smaller units.

AOPDatabaseSpring
0 likes · 6 min read
Common Pitfalls of Spring Transaction Management and How to Avoid Them
Programmer DD
Programmer DD
Aug 18, 2022 · Backend Development

How to Build an Asynchronous Excel Upload Service with AOP and Thread Pools

This article explains how to handle time‑consuming Excel uploads by using a template‑method design, wrapping the process with an AOP aspect, and executing the actual upload asynchronously in a thread pool, while recording logs and error details for later inspection.

AOPAsynchronousThread Pool
0 likes · 10 min read
How to Build an Asynchronous Excel Upload Service with AOP and Thread Pools
Architecture & Thinking
Architecture & Thinking
Aug 16, 2022 · Backend Development

Unveiling Spring AOP: A Deep Dive into Source Code and Proxy Mechanics

This article provides a comprehensive analysis of Spring AOP, covering its core concepts, configuration parsing, BeanFactoryPostProcessor and BeanPostProcessor mechanisms, namespace handling, the creation of advisors and advice from @Aspect annotations, and the proxy generation process that enables method interception.

AOPAspectJSpring
0 likes · 32 min read
Unveiling Spring AOP: A Deep Dive into Source Code and Proxy Mechanics
Selected Java Interview Questions
Selected Java Interview Questions
Aug 16, 2022 · Backend Development

Spring Framework Design Patterns Overview

This article explains how Spring implements various design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation approaches, underlying principles, and practical code examples within the Spring container.

AOPDesign PatternsSpring
0 likes · 13 min read
Spring Framework Design Patterns Overview
Java Backend Technology
Java Backend Technology
Aug 16, 2022 · Backend Development

Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls

This article explains Spring’s transaction propagation behaviors, rollback mechanisms, common pitfalls such as self‑invocation and non‑public methods, and demonstrates how to correctly use @Transactional with AOP proxies, including practical code examples and solutions for ensuring transaction consistency.

AOPSpringTransactional
0 likes · 9 min read
Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls
Top Architect
Top Architect
Aug 6, 2022 · Backend Development

Practical Coding Techniques: Kafka Transaction Commit, Redis Distributed Lock Simplification, and Business Log Decoupling

This article shares several practical coding techniques for backend development, including how to commit Kafka transactions safely, simplify Redis distributed lock usage with Redisson, implement AOP-based method locking, and decouple business logging using thread pools and asynchronous processing.

AOPRedisSpring
0 likes · 13 min read
Practical Coding Techniques: Kafka Transaction Commit, Redis Distributed Lock Simplification, and Business Log Decoupling
IT Architects Alliance
IT Architects Alliance
Aug 6, 2022 · Backend Development

Practical Coding Tips: Kafka Transaction Commit, Redis Distributed Lock Simplification, AOP Lock Annotation, and Business Log Decoupling

This article shares practical development techniques, including how to safely commit Kafka messages within transactions, simplify Redis distributed locks with Redisson, implement an AOP‑based lock annotation for method-level locking, and decouple business logging using asynchronous thread pools and helper utilities.

AOPKafkaRedis
0 likes · 14 min read
Practical Coding Tips: Kafka Transaction Commit, Redis Distributed Lock Simplification, AOP Lock Annotation, and Business Log Decoupling
Top Architect
Top Architect
Aug 2, 2022 · Backend Development

Best Practices for API Design and Controller Standards in Java Backend Development

The article explains why a unified response format like ResultBean is essential for Java backend APIs, outlines common interface design mistakes, provides concrete coding guidelines for controllers, and demonstrates how to use AOP for exception handling and logging, all illustrated with practical code examples.

AOPSpringjava
0 likes · 10 min read
Best Practices for API Design and Controller Standards in Java Backend Development
Wukong Talks Architecture
Wukong Talks Architecture
Jul 31, 2022 · Backend Development

Understanding Java Reflection, Class Loading, and Dynamic Proxy Mechanisms

This article provides a comprehensive guide to Java's reflection mechanism, class loading process, ClassLoader usage, and dynamic proxy techniques, illustrating how to inspect class structures, create objects, access fields and methods, retrieve generic type information, and implement both static and dynamic proxies with practical code examples.

AOPAnnotationClassLoader
0 likes · 45 min read
Understanding Java Reflection, Class Loading, and Dynamic Proxy Mechanisms
Top Architect
Top Architect
Jul 28, 2022 · Backend Development

Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls

This article explains Spring's @Transactional annotation, detailing the various transaction propagation options, the default rollback behavior for unchecked exceptions, common pitfalls such as self‑invocation and non‑public methods, and how to use AOP proxies like AopContext.currentProxy and @EnableAspectJAutoProxy to ensure proper transaction management.

AOPRollbackSpring
0 likes · 9 min read
Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls
Java Backend Technology
Java Backend Technology
Jul 22, 2022 · Backend Development

Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP

This article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, and inappropriate parameters—and demonstrates how a unified ResultBean, strict controller conventions, and AOP logging can dramatically improve code readability, maintainability, and error management in Spring Boot projects.

AOPAPI DesignResultBean
0 likes · 10 min read
Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP
Top Architect
Top Architect
Jul 19, 2022 · Backend Development

How Spring Resolves Circular Dependencies Using Early Exposure and Three‑Level Caches

The article explains Spring's three‑level cache mechanism—singletonObjects, earlySingletonObjects, and singletonFactories—and how early exposure combined with BeanPostProcessor hooks enables the framework to break circular dependencies while still applying AOP proxies before full bean initialization.

AOPBeanPostProcessorCircular Dependency
0 likes · 13 min read
How Spring Resolves Circular Dependencies Using Early Exposure and Three‑Level Caches
Architect's Tech Stack
Architect's Tech Stack
Jul 19, 2022 · Backend Development

Asynchronous Excel Import with Thread Pool and AOP in Java

This article explains how to handle large Excel uploads in Java by offloading parsing and validation to a thread pool, using the Template Method pattern to reduce boilerplate, and finally applying a custom AOP annotation to manage logging, error handling, and asynchronous execution in a clean, reusable way.

AOPDesign PatternThread Pool
0 likes · 10 min read
Asynchronous Excel Import with Thread Pool and AOP in Java
Top Architect
Top Architect
Jul 11, 2022 · Backend Development

Spring Core Concepts and Building a Mini Framework Without Spring

This article explains Spring's core features such as IoC, DI and AOP, demonstrates creating a simple Hello World service with Spring Boot, then shows how to implement the same functionality using raw Servlets and finally builds a miniature Spring‑like framework with custom annotations, an IOC container and a dispatcher servlet.

AOPIoCMiniFramework
0 likes · 19 min read
Spring Core Concepts and Building a Mini Framework Without Spring
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 6, 2022 · Backend Development

Spring Expression Language (SpEL) Overview and Practical Usage

This article introduces Spring Expression Language (SpEL), explains its common syntax, demonstrates quick-start examples, shows real-world usage with AOP monitoring, and outlines its internal implementation, providing a concise guide for backend developers working with Spring.

AOPExpression LanguageSpEL
0 likes · 9 min read
Spring Expression Language (SpEL) Overview and Practical Usage
Java High-Performance Architecture
Java High-Performance Architecture
Jun 28, 2022 · Backend Development

Understanding Spring AOP vs AspectJ: Core Concepts and Configuration

This article compares AspectJ and Spring AOP, explains the four types of Spring AOP support, details classic Spring AOP proxy creation, demonstrates various advice implementations, shows XML and annotation configurations, and introduces auto‑proxy creators for simplifying AOP setup in Java backend development.

AOPAspectJbackend development
0 likes · 10 min read
Understanding Spring AOP vs AspectJ: Core Concepts and Configuration
IT Architects Alliance
IT Architects Alliance
Jun 19, 2022 · Backend Development

Four Ways to Implement Generic Auth in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter

This article explains how to add a universal app‑key whitelist authentication feature to a Spring‑Boot web framework by using four different mechanisms—traditional AOP, HandlerInterceptor, custom HandlerMethodArgumentResolver, and a Servlet Filter—while comparing their execution order and extensibility.

AOPArgumentResolverInterceptor
0 likes · 10 min read
Four Ways to Implement Generic Auth in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter
Top Architect
Top Architect
Jun 15, 2022 · Backend Development

Implementing Request-Level Locking with a Custom @ApiLock Annotation in Java

This article explains how to prevent duplicate backend requests caused by rapid user clicks by creating a reusable @ApiLock annotation that leverages distributed locks, generates lock keys from request parameters, and integrates an AOP aspect to acquire and release locks around controller methods.

AOPAnnotationDistributedLock
0 likes · 14 min read
Implementing Request-Level Locking with a Custom @ApiLock Annotation in Java
Top Architect
Top Architect
Jun 12, 2022 · Backend Development

How Spring Resolves Circular Dependencies Using Early Exposure and a Three‑Level Cache

This article explains Spring's circular‑dependency solution, detailing the early‑exposure mechanism, the three‑level cache (singletonObjects, earlySingletonObjects, singletonFactories), how BeanPostProcessors and AOP proxies interact during bean creation, and why the third‑level cache is essential for correct bean wiring.

AOPBeanPostProcessorCircular Dependency
0 likes · 14 min read
How Spring Resolves Circular Dependencies Using Early Exposure and a Three‑Level Cache
Top Architect
Top Architect
May 21, 2022 · Backend Development

Understanding Spring Assert and Common Utility Classes in Java

This article introduces Spring's Assert utilities, explains the purpose and usage of various Spring‑provided helper classes such as ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, and AOP utilities, and provides code snippets illustrating their typical methods for validation, conversion, and reflection tasks in Java backend development.

AOPUtilityassert
0 likes · 13 min read
Understanding Spring Assert and Common Utility Classes in Java
Sanyou's Java Diary
Sanyou's Java Diary
May 19, 2022 · Backend Development

Mastering Spring: Core Concepts, Modules, Annotations & Advanced Features

This comprehensive guide walks through Spring’s fundamentals—including IoC, DI, core modules, common annotations, AOP concepts, transaction management, MVC workflow, and Spring Boot auto‑configuration—while also covering advanced topics such as bean lifecycle, circular dependencies, proxy mechanisms, and an introduction to Spring Cloud.

AOPIoCMVC
0 likes · 54 min read
Mastering Spring: Core Concepts, Modules, Annotations & Advanced Features
DaTaobao Tech
DaTaobao Tech
May 19, 2022 · Backend Development

Understanding Proxy Pattern and Spring Transaction Management

The article explains static and dynamic proxy patterns, demonstrates their Java implementations, and shows how Spring’s transaction management relies on dynamic AOP proxies—highlighting that internal calls within the same class bypass the proxy, preventing @Transactional methods from starting or rolling back transactions.

AOPDynamic ProxyProxy Pattern
0 likes · 21 min read
Understanding Proxy Pattern and Spring Transaction Management
macrozheng
macrozheng
May 18, 2022 · Backend Development

Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples

This guide explains Spring’s Assert utilities and a comprehensive set of core helper classes—including ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, AopUtils, and AopContext—detailing their purpose, typical use cases, and providing concise code examples for each method.

AOPSpringUtility Classes
0 likes · 14 min read
Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples
Code Ape Tech Column
Code Ape Tech Column
May 11, 2022 · Backend Development

Implementing Two-Level Cache with Caffeine and Redis in Spring Boot

This article explains the design and implementation of a two‑level caching architecture using local Caffeine cache as L1 and remote Redis as L2 in Spring Boot, covering manual cache handling, annotation‑based management with Spring Cache, and a custom annotation with AOP to minimize code intrusion.

AOPCache AnnotationCaffeine
0 likes · 17 min read
Implementing Two-Level Cache with Caffeine and Redis in Spring Boot
Programmer DD
Programmer DD
May 5, 2022 · Backend Development

Master Spring Retry: Using @Retryable for Elegant Failure Handling

This guide explains how Spring Boot’s @Retryable annotation enables elegant, annotation‑driven retry logic, covering dependency setup, enabling retry, method annotation with configurable parameters, recovery handling via @Recover, and important AOP‑related considerations to avoid common pitfalls.

AOPException HandlingRetryable
0 likes · 7 min read
Master Spring Retry: Using @Retryable for Elegant Failure Handling
Architecture Digest
Architecture Digest
Apr 26, 2022 · Backend Development

Implementing Request Logging with Spring AOP and Annotations

This article demonstrates how to create a request‑logging aspect in Spring Boot using AOP annotations, shows code for pointcuts, advices, high‑concurrency optimizations, exception handling, and trace‑ID propagation, and explains the underlying concepts and practical tips.

AOPAspectJSpring
0 likes · 16 min read
Implementing Request Logging with Spring AOP and Annotations
Java Tech Enthusiast
Java Tech Enthusiast
Apr 23, 2022 · Backend Development

Spring AOP Tutorial with Code Examples

This Spring AOP tutorial explains how to modularize cross‑cutting concerns such as timing by defining an aspect with @Before, @After, @AfterReturning, @AfterThrowing and @Around advice, demonstrates refactoring a calculation service, and compares Spring’s proxy mechanisms to a custom JDK dynamic proxy implementation.

AOPAspectJDynamicProxy
0 likes · 17 min read
Spring AOP Tutorial with Code Examples
Top Architect
Top Architect
Apr 21, 2022 · Backend Development

Understanding AOP: Joinpoint Design, Advice, and Weaving in Java

This article explains the background, concepts, and implementation details of Aspect‑Oriented Programming in Java, covering joinpoint interface design, advice abstraction, static and dynamic weaving, and how Spring AOP applies these principles with illustrative code and diagrams.

AOPAdviceJoinpoint
0 likes · 9 min read
Understanding AOP: Joinpoint Design, Advice, and Weaving in Java
Java Backend Technology
Java Backend Technology
Apr 16, 2022 · Backend Development

Why @Transactional Sometimes Fails in Spring and How to Fix It

This article explains three common situations where Spring's @Transactional annotation becomes ineffective—non‑public methods, internal self‑calls, and swallowed exceptions—detailing the underlying proxy mechanism, code examples, test results, and practical workarounds to ensure proper transaction management.

AOPDatabaseException Handling
0 likes · 12 min read
Why @Transactional Sometimes Fails in Spring and How to Fix It
Top Architect
Top Architect
Apr 15, 2022 · Backend Development

Implementing Request Logging with Spring AOP and TraceId

This article demonstrates how to create a Spring AOP request‑logging aspect that captures IP, URL, HTTP method, class method, parameters, results and execution time, and extends it with high‑concurrency handling, error logging, and TraceId propagation for better traceability.

AOPRequest LoggingSpring
0 likes · 13 min read
Implementing Request Logging with Spring AOP and TraceId
Python Programming Learning Circle
Python Programming Learning Circle
Apr 8, 2022 · Fundamentals

A Comprehensive Guide to Python Decorators and Aspect-Oriented Programming (AOP)

This article explains the concept of Aspect‑Oriented Programming (AOP) and demonstrates how Python decorators—both function‑based and class‑based—can be used to implement AOP features such as pre‑ and post‑execution logic, handling arguments, preserving metadata with functools.wraps, and stacking multiple decorators.

AOPMetadataPython
0 likes · 18 min read
A Comprehensive Guide to Python Decorators and Aspect-Oriented Programming (AOP)
Java Backend Technology
Java Backend Technology
Apr 3, 2022 · Backend Development

Why @Transactional Fails in Spring and How to Fix It

This article explains three common reasons why the @Transactional annotation may not work in Spring—non‑public methods, self‑invocation, and catching exceptions—provides code examples for each case, and details the underlying proxy and transaction management mechanisms to help developers resolve the issues.

AOPDatabase TransactionSpring
0 likes · 11 min read
Why @Transactional Fails in Spring and How to Fix It
Top Architect
Top Architect
Mar 21, 2022 · Backend Development

How Spring Resolves Bean Circular Dependencies with a Three‑Level Cache

This article explains Spring's bean lifecycle, the three‑level cache mechanism (singletonObjects, earlySingletonObjects, singletonFactories) used to break circular dependencies, the role of Aware interfaces and BeanPostProcessor, and why a second‑level cache is essential when AOP proxies are involved.

AOPBean LifecycleCircular Dependency
0 likes · 9 min read
How Spring Resolves Bean Circular Dependencies with a Three‑Level Cache
Top Architect
Top Architect
Mar 20, 2022 · Backend Development

Understanding Spring's @Transactional Annotation and Its AOP Implementation

This article explains how Spring's @Transactional annotation works by leveraging AOP and dynamic proxies, detailing the bean post‑processor, pointcut definition, proxy creation, interceptor chain, TransactionInterceptor logic, and the transaction commit/rollback process with illustrative code snippets and diagrams.

AOPSpringTransaction Management
0 likes · 9 min read
Understanding Spring's @Transactional Annotation and Its AOP Implementation