Fork me on GitHub
摘要: 1.目标类接口:package com.interceptor;public interface TargetInterface { public void doSomething();}2.目标类实现:package com.interceptor;public class Target implements TargetInterface{ public void doSomething() { System.out.println("doSomething"); }}3.自定义拦截器:package com.interceptor;public c... 阅读全文
posted @ 2012-01-30 17:54 落崖惊风 阅读(2903) 评论(0) 推荐(0) 编辑