---
title: "应用Spring AOP（四）-------原理"
author: "tonlion2046"
date: "2013-10-29T16:25:30Z"
tags: []
categories: ["编程语言"]
slug: "spring-aop"
draft: false
lastmod: "2013-10-29T16:26:08Z"
id: 1966142
url: "https://tonl.iteye.com/blog/1966142"
---

记得参加今年的网易校招Java研发工程师职位的笔试题中就有类似的这个题目，还好之前看过网上的介绍，而且阿里巴巴一面的时候这个知识点也帮了我的大忙，嘿嘿。。

这篇文章太有用了，讲得很透彻：[http://www.blogjava.net/DoubleJ/archive/2008/03/04/183796.html](http://www.blogjava.net/DoubleJ/archive/2008/03/04/183796.html)

大体就是应用动态代理，说白了就是反射+代理模式，其中java.lang.reflect.InvocationHandler接口是关键。