2015年6月20日

18Spring后置通知

摘要: Spring后置通知,和前置通知类似,直接看代码:package com.cn.spring.aop.impl;//加减乘除的接口类public interface ArithmeticCalculator { int add(int i, int j); int sub(int i, ... 阅读全文

posted @ 2015-06-20 21:34 jec 阅读(175) 评论(0) 推荐(0) 编辑

17Spring前置通知

摘要: 1).加入jar包:下载地址 spring-beans-4.1.6.RELEASE.jar commons-logging-1.1.3.jar spring-context-4.1.6.RELEASE.jar spring-core-4.1.6.RELEASE.jar spring-exp... 阅读全文

posted @ 2015-06-20 21:27 jec 阅读(447) 评论(0) 推荐(0) 编辑

15Spring AOP基础

摘要: 为什么需要AOP?先来看一段代码:package com.cn.spring.aop.helloworld;//加减乘除的接口类public interface ArithmeticCalculator { int add(int i, int j); int sub(int i, in... 阅读全文

posted @ 2015-06-20 12:53 jec 阅读(162) 评论(0) 推荐(0) 编辑

15Spring泛型依赖注入

摘要: Spring 4.x中可以为子类注入子类对应的泛型类型的成员变量的引用BaseService:有RoleService和UserService两的子类BaseRepepositry:有UserRepository和RoleRepositry两个子类由于 BaseService和 BaseRepepo... 阅读全文

posted @ 2015-06-20 00:09 jec 阅读(189) 评论(0) 推荐(0) 编辑

导航