使用spring AOP 来添加事务
?
?
2、MyBatis-Configuration.xml内容
?
3、UserDao.xml内容
?
4、service层控制事务
?
备注:controller层需要对事务数据库的操作要try...catch,捕获出现的异常,否则会报错,无法跳转到指定的页面
发布时间: 2014-01-09 23:07:34 作者: rapoo
使用spring AOP 来添加事务
?
?
2、MyBatis-Configuration.xml内容
?
3、UserDao.xml内容
?
4、service层控制事务
?
备注:controller层需要对事务数据库的操作要try...catch,捕获出现的异常,否则会报错,无法跳转到指定的页面