使用spring AOP 回添加事务

使用spring AOP 来添加事务??2、MyBatis-Configuration.xml内容?3、UserDao.xml内容?4、service层控制事务?备

使用spring AOP 来添加事务

?

?

2、MyBatis-Configuration.xml内容

?

3、UserDao.xml内容

?

4、service层控制事务

?

备注:controller层需要对事务数据库的操作要try...catch,捕获出现的异常,否则会报错,无法跳转到指定的页面