摘要: spring day03回顾 事务管理 基于xml配置 1.配置事务管理器 jdbc:DataSourceTransactionManager hibernate:HibernateTransactionManager 2.事务通知(详情、属性) 3. AOP编程,ABCD--> ABC 基于注解 xml 配置 1.事务... 阅读全文
posted @ 2016-10-04 20:23 runningto 阅读(589) 评论(0) 推荐(0) 编辑
摘要: spring day02回顾 AOP :切面编程 切面:切入点 和 通知 结合 spring aop 编程 方法1: 方法2: AspectJ xml 前置 后置 环绕 抛出异常 最终 AspectJ annotation @Aspect @Pointcut("表... 阅读全文
posted @ 2016-10-04 20:17 runningto 阅读(500) 评论(0) 推荐(0) 编辑
摘要: spring day01回顾 编写流程(基于xml) 1.导入jar包:4+1 --> beans/core/context/expression | commons-logging 2.编写目标类:dao和service 3.spring配置文件 IoC: DI: 实例化方式: 默认构造 静态工厂: 实例工厂: 作用域: 生命周期: 后处理bean BeanPostP... 阅读全文
posted @ 2016-10-04 20:12 runningto 阅读(861) 评论(0) 推荐(0) 编辑