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

【C015349】在声明式事务管理中配置事务属性的代码如下:
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="*"/>
<tx:method name="search*" read-only="true"
propagation="REQUIRED" isolation="DEFAULT" timeout="5" />
<tx:method name="get*" propagation="NEVER"/>
<tx:method name="set*" propagation="NEVER"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="service"
expression="execution(public * com.pb.service.impl..*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="service"/>
</aop:config>
下面关于它的说法错误的是( )。

  • A.read-only="true"表示事务为只读
  • B.com.pb.service.impl包下所有类的所有方法都会被添加事务处理
  • C.timeout="5"表示事务最长运行时间为5毫秒,可防止事务执行时间过长而影响系统性能
  • D.propagation="NEVER"表示匹配的方法不添加事务处理
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 2个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部