单项选择题
基于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 -
单项选择题
将事务传播行为设置成(),当方法调用时,不存在事务则不使用;如存在则沿用。
A.WREQUIRED
B.SUPPORTS
C.MANDATORY
D.REQUIRES_NEW
