spring transactionmanager 注解方式 如果不适用注解事物怎么处理

2025-05-07 00:34:24
推荐回答(1个)
回答1:

有两种选择,第一种是使用。beannameautoproxy, 然后配置,事务拦截器transactioninterceptor,

第二种是使用声明式事务,就是在配置文件里面,使用aop,切面