事务题

30 阅读1分钟

@Transactional 读写事务

关键点: 1.数据库事务

2.编程式事务beginTransaction,commit,rollback

3.声明式事务@Transactional

答:不能,在类上使用@Transactional注解,默认开启了全局读写事务。

2.可以细粒度在方法上加注解