事务管理思考 orm dao关心sql生成、参数绑定、结果映射 service层使用事务 事务管理的基础是基于同一个数据库链接;多线程公用一个数据库连接会发生回滚;不同线程使用不同的连接的办法是使用threadlocal; tlsmile 2019-12-23 22:17:10
spring aspect 面向切面编程,代码如下: 注:任何通知方法可以将第一个参数定义为org.aspectj.lang.JoinPoint类型(环绕通知需要定义第一个参数为ProceedingJoinPoint类型,它是JoinPoint的一个子类)。 haidaoxianzi 2011-03-13 16:35:31
spring中自定义注解(annotation)与AOP中获取注解 import java.lang.annotation.Documented;import me.lichunlong.spring.annotation.LogAnnotation;System.out.println("后置通知");} burning 2015-04-15 15:18:59