摘要:
1、配置applicationContext.xml 2、编写接口 3、编写实现接口的不同子类 4、编写service层的类 5、编写测试类 阅读全文
posted @ 2017-05-16 22:57
奋斗的少年WH
阅读(577)
评论(0)
推荐(0)
摘要:
applicationContext.xml User.java Test.java 阅读全文
posted @ 2017-05-16 22:54
奋斗的少年WH
阅读(110)
评论(0)
推荐(0)
摘要:
Hobby.java Student.java applicationContext.xml TestMVC.java 阅读全文
posted @ 2017-05-16 22:51
奋斗的少年WH
阅读(179)
评论(0)
推荐(0)
摘要:
AopProxy.java applicationContext.xml TestMVC.java 运行结果: AOP前置通知! 公布比赛结果... AOP异常通知 异常信息是: / by zero AOP最终通知 阅读全文
posted @ 2017-05-16 22:46
奋斗的少年WH
阅读(172)
评论(0)
推荐(0)
摘要:
package com.wh.po; public interface IComputer { void add(int a,int b); void sub(int a,int b); void mul(int a,int b); void div(int a,int b); } package com.wh.po; public class Computer implem... 阅读全文
posted @ 2017-05-16 22:41
奋斗的少年WH
阅读(114)
评论(0)
推荐(0)
摘要:
Pointcut 是指那些方法需要被执行"AOP",是由"Pointcut Expression"来描述的. Pointcut可以有下列方式来定义或者通过&& || 和!的方式进行组合. args() @args() execution() this() target() @target() wit 阅读全文
posted @ 2017-05-16 21:40
奋斗的少年WH
阅读(762)
评论(0)
推荐(0)

浙公网安备 33010602011771号