摘要:
一、IOC注解 1、常用注解 @Compoent 实现业务Bean的注入 @Repository 专门注入Dao 基于@Compoent 2、IOC注解需要需要在大配置文件中,扫描包 <context:compoent-scan base-package="cn.spring"/> 2、向sprin 阅读全文
摘要:
环绕增强 环绕增强相当于前置增强和后置增强的结合体,使用<aop:around>处理 实例: DoSomeService接口: DoSomeServiceImpl实现类: BeforAdvice增强类: application-around.xml文件: 测试: 声明式增强 声明式增强:借助Spri 阅读全文