摘要: Spring AOP1. 代理模式1.1. 静态代理程序中经常需要为某些动作或事件作下记录,以便在事后检测或作为排错的依据,先看一个简单的例子:import java.util.logging.*;public class HelloSpeaker {private Logger logger = Logger.getLogger(this.getClass().getName());public void hello(String name) {logger.log(Level.INFO, "hello method starts....");System.out.pri 阅读全文
posted @ 2014-02-24 19:41 塞北鸿雁飞 阅读(420) 评论(0) 推荐(0) 编辑