单项选择题
Spring管理器核心接口中声明了()方法用于完成事务提交。
A.commit()
B.rollback()
C.getTransaction()
D.isExistingTransaction()
点击查看答案
相关考题
-
单项选择题
基于XML配置的声明式事务,可以配置()类的Bean完成事务拦截器配置。
A.TransactionInterceptor
B.HandlerInterceptor
C.HandlerInterceptorAdapter
D.Interceptor -
单项选择题
使用基于@Transactional注解的声明式事务时,需要在Spring核心配置文件中编写()来配置注解驱动。
A.aop:config
B.tx:annotation-driven
C.context:property-placeholder
D.mvc:annotation-driven -
单项选择题
在类或方法上使用()注解可以实现声明式事务。
A.@RequestMapping
B.@Controller
C.@Transactional
D.@Service
