Tagged articles

CGLIB proxy

2 articles · Page 1 of 1
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
Shepherd Advanced Notes
Shepherd Advanced Notes
Aug 14, 2023 · Backend Development

Common @Transactional Pitfalls in Spring Boot Business Code and How to Avoid Them

This article analyzes frequent scenarios where Spring's @Transactional annotation fails in Spring Boot projects—such as self-invocation, swallowed exceptions, misconfigured rollback rules, non‑public methods, wrong propagation settings, and long‑running transactions—and provides concrete fixes to prevent data inconsistency and performance issues.

@TransactionalCGLIB proxySpring Boot
0 likes · 17 min read
Common @Transactional Pitfalls in Spring Boot Business Code and How to Avoid Them