赵计刚
每天进步一点点
摘要: 在第八章 springboot + mybatis + 多数据源代码的基础上,做两点修改 1、ShopDao 1 package com.xxx.firstboot.dao; 2 3 import org.springframework.beans.factory.annotation.Autowi 阅读全文
posted @ 2016-04-21 10:19 赵计刚 阅读(18784) 评论(3) 推荐(1) 编辑
摘要: 关于AOP,通常我们会使用AspectJ注解来做,共有6中切面 前置:@Before 后置:@After 返回值:@AfterReturing 异常:@AfterThrowing 环绕:@Around:可以理解为以上四种的集合 引用(不常用) 比较难理解的两个部分: 连接点:JoinPoint、Pr 阅读全文
posted @ 2016-04-21 10:18 赵计刚 阅读(1451) 评论(0) 推荐(0) 编辑