Tag

Spring AOP

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 8, 2025 · Backend Development

Master 10 Essential Spring AOP Pointcut Expressions in Spring Boot 3

This article introduces ten common Spring AOP pointcut expressions, explains their syntax and usage with both annotation‑based and XML configurations, provides concrete code examples, and shows how to combine them for flexible aspect weaving in Spring Boot 3.4.2.

JavaPointcut ExpressionsSpring AOP
0 likes · 9 min read
Master 10 Essential Spring AOP Pointcut Expressions in Spring Boot 3
Selected Java Interview Questions
Selected Java Interview Questions
Mar 20, 2025 · Backend Development

Implementing Global Data Desensitization with Hutool and Spring AOP

This article demonstrates how to build a reusable data‑desensitization component in Java by defining custom annotations, extending Hutool's DesensitizedUtil, and creating a Spring AOP aspect that automatically masks sensitive fields in returned objects such as pages, lists, or single entities.

AnnotationsAspect-Oriented ProgrammingData Desensitization
0 likes · 7 min read
Implementing Global Data Desensitization with Hutool and Spring AOP
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 LockJavaRedis
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 InterfaceJava
0 likes · 8 min read
Master Spring AOP’s @DeclareParents: Dynamic Interface Injection in Spring Boot 3
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 6, 2024 · Backend Development

Test Your Spring AOP Mastery: 20 Multiple‑Choice Questions with Answers

This article introduces Spring AOP concepts, explains their role in improving code maintainability, and presents a set of 20 multiple‑choice questions covering aspects, advices, pointcuts, and practical usage, followed by the correct answer key for self‑assessment.

Aspect-Oriented ProgrammingJavaMultiple Choice
0 likes · 10 min read
Test Your Spring AOP Mastery: 20 Multiple‑Choice Questions with Answers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 24, 2024 · Backend Development

Master Spring AOP Pointcut Expressions: Syntax, Examples, and Aspect Order

This article explains Spring AOP pointcut expression syntax, demonstrates how to match methods, packages, and beans with execution, within, and bean designators, shows how to combine expressions, and details controlling aspect execution order using @Order and the Ordered interface.

AspectJJavaSpring AOP
0 likes · 10 min read
Master Spring AOP Pointcut Expressions: Syntax, Examples, and Aspect Order
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.

Aspect-Oriented ProgrammingByteBuddyDiagnostics
0 likes · 13 min read
Limitations of Spring AOP and Java Agent Solutions for the Diagnose Framework
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.

AspectJJavaProxy
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.

AESAPI securityEncryption
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.

AESAPI securityEncryption
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.

KotlinLuaRate Limiting
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Custom Annotations in Kotlin
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 29, 2023 · Backend Development

Mastering Spring AOP: Control Flow Pointcuts & Introduction Advice Explained

This tutorial walks through Spring AOP's control flow pointcuts and introduction advice, showing how to define dynamic pointcuts, create advisors, and use @DeclareParents to add interfaces to beans, complete with practical code examples and output analysis.

AspectJControl Flow PointcutIntroduction Advice
0 likes · 7 min read
Mastering Spring AOP: Control Flow Pointcuts & Introduction Advice Explained
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.

AOPAnnotationsAspect-Oriented Programming
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.

Aspect-Oriented ProgrammingBusiness LoggingJava
0 likes · 16 min read
Implementing Business Operation Logging with Spring AOP in a Java Backend
Architect's Guide
Architect's Guide
Dec 31, 2022 · Backend Development

Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal

This article explains how to protect time‑consuming business operations using a Redis‑based distributed lock, detailing the annotation design, AOP pointcut, lock acquisition and release, timeout handling, and a scheduled renewal mechanism with sample Java code.

Distributed LockJavaRedis
0 likes · 13 min read
Implementing a Distributed Redis Lock with Spring AOP and Automatic Renewal
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
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.

AnnotationsJavaMeta‑annotations
0 likes · 22 min read
Master Java Annotations: From Basics to Custom Usage
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.

Aspect-Oriented ProgrammingJavaPointcut Expressions
0 likes · 12 min read
Mastering Spring AOP Pointcut Expressions: A Complete Guide
Java Architect Essentials
Java Architect Essentials
Feb 2, 2021 · Operations

Server and Business Monitoring Practices Using Netdata, Spring AOP, and Javamelody

This article explains how to monitor both Linux servers and Java business applications by selecting lightweight tools like Netdata, implementing request‑time logging with Spring AOP, and integrating Javamelody, while providing configuration snippets and code examples for a comprehensive monitoring solution.

JavaJavaMelodyNetdata
0 likes · 9 min read
Server and Business Monitoring Practices Using Netdata, Spring AOP, and Javamelody