随笔分类 - spring
摘要:基于XML的开发 1.定义一个切面类 /** * Created by zejian on 2017/2/20.*/ public class MyAspectXML { public void before(){ System.out.println("MyAspectXML 前置通知"); }
阅读全文
摘要:基于注解的Spring AOP开发,来自https://www.cnblogs.com/junzi2099/p/8274813.html 1.定义目标类接口和实现类 2.编写Spring AOP的aspect 类 @Aspect public class MyAspect { /** * 前置通知
阅读全文

浙公网安备 33010602011771号