首页 试题广场 > 试题详情
单选题

【C015403】在Spring中进行声明式事务管理时,某个业务方法addUser(UserEntity user)需要对其进行事务控制,下列选项能正确配置其事务通知的选项是()。

  • A.<tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:attributes name="add*" propagation="REQUIRED"></ tx:attributes >
    </tx:advice>
  • B.<tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:attributes>
    <tx:method name="add*" propagation="REQUIRED"></tx:method>
    </tx:attributes>
    </tx:advice>
  • C.<tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:attributes>
    <tx:pointcut name="add*" propagation="REQUIRED"></tx:pointcut>
    </tx:attributes>
    </tx:advice>
  • D.<tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:method name="add*" propagation="REQUIRED"></tx:method>
    </tx:advice>
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 1个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部