Proxy Pattern
Learn Proxy Pattern (Spring MVC Architecture & Design Patterns, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Proxy pattern : a stand-in object with the same interface as the real one that adds behavior (transactions, security, caching, logging) before or after the call. Spring uses it everywhere : @Transactional , @Cacheable , @Async , @PreAuthorize and AOP advice all work through proxies. Two kinds : JDK dynamic proxies (interface based) and CGLIB proxies (subclass based, the Spring Boot default).