Tagged articles
JDK Proxy
14 articles · Page 1 of 1
This article explains Spring AOP's core concepts including join points, advice abstraction, and weaving mechanisms, detailing the AOP Alliance interface design with JoinPoint and MethodInterceptor, and contrasting static versus dynamic weaving approaches used by Spring.
AOP AllianceAspect-Oriented ProgrammingCGLIB
0 likes · 9 min read

The article explains that Spring AOP cannot intercept methods marked as private, static, or final because JDK dynamic proxies only work on public interface methods and CGLIB subclasses cannot override such methods, leading to static matching but dynamic execution failure, self‑invocation bypass, and complete loss of advice for these method types.
AOPCGLIBJDK Proxy
0 likes · 11 min read

This article explains how Spring AOP creates proxies using JDK dynamic proxies or CGLIB, outlines the limitations of each approach, and shows multiple ways—including XML, YAML, and annotations—to force CGLIB usage and resolve self‑invocation issues in Spring Boot applications.
AOPJDK ProxyProxy
0 likes · 8 min read

This article explains the difference between static and dynamic proxies in Java, walks through JDK dynamic‑proxy implementation steps, analyzes the underlying Proxy class generation process, and compares performance and usage with static proxies and CGLIB.
Design PatternJDK ProxyJava
0 likes · 20 min read

This article explains the concept of dynamic proxies, compares Spring's JDK‑based and CGLIB‑based proxy implementations with code examples, and shows how they power Spring AOP for cross‑cutting concerns such as transactions and logging.
AOPCGLIBJDK Proxy
0 likes · 6 min read


JavaEdgeFeb 27, 2023 · Backend Development
This article explains the core principle of RPC using dynamic proxies, showing how interfaces are proxied at runtime, the code generation process, and compares JDK, Javassist, and Byte Buddy proxy implementations with practical examples.
BackendByte BuddyJDK Proxy
0 likes · 9 min read

This article explains the behavior of Spring Boot’s @Configuration and @Import annotations, the reasons a custom PointcutAdvisor may not be applied when using JDK proxies, and provides two solutions—adding the @DS annotation to interface methods or forcing CGLIB proxying with proxyTargetClass=true—to ensure the advice executes correctly.
AOPAnnotationsCGLIB
0 likes · 10 min read

This article explains the proxy design pattern in Java, demonstrates how to create static proxies, uses JDK dynamic proxies with InvocationHandler, and shows how CGLIB can generate class‑based proxies, highlighting their implementations, usage examples, and limitations.
CGLIBJDK ProxyJava
0 likes · 8 min read

This article explains the GoF Proxy pattern, illustrates static proxy implementation, and details both JDK dynamic proxy and cglib dynamic proxy techniques in Java with complete code examples and a comparison of their characteristics and usage scenarios.
JDK ProxyJavaStatic Proxy
0 likes · 8 min read

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.
CGLIBJDK ProxyJava
0 likes · 22 min read

This article explains the core principle of MyBatis by demonstrating how Mapper interfaces are turned into dynamic proxy objects using JDK proxy mechanisms, walks through manual simulation code, and clarifies each step of the proxy creation and method invocation process.
BackendJDK ProxyJava
0 likes · 7 min read

This article explains how JDK and CGLib dynamic proxies work in Java, provides complete implementation examples, compares their mechanisms, usage scenarios in Spring, and discusses performance differences across JDK versions.
CGLIBJDK Proxydynamic-proxy
0 likes · 10 min read

This article explains the fundamentals of Spring AOP's JDK and CGLib dynamic proxies, compares their implementation details, presents performance test results across Java 1.6‑1.8, and offers practical guidance on choosing the appropriate proxy based on use‑case.
AOPCGLIBJDK Proxy
0 likes · 7 min read

This article examines how JDK dynamic proxies cause Spring transaction methods to lose their transactional behavior, illustrates the issue with four concrete scenarios, and presents three practical solutions to ensure proper rollback and commit semantics.
AOPJDK ProxyJava
0 likes · 8 min read
