posts - 25,comments - 0,trackbacks - 0
spring配置该方法只读了。

<bean id="txProxyTemplate" abstract="true"
       class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
       <property name="transactionManager" ref="transactionManager"/>
       <property name="transactionAttributes">
           <props>
              <prop key="affirm*">PROPAGATION_REQUIRED</prop>
              <prop key="gen*">PROPAGATION_REQUIRED</prop>
               <prop key="save*">PROPAGATION_REQUIRED</prop>
               <prop key="update*">PROPAGATION_REQUIRED</prop>
               <prop key="create*">PROPAGATION_REQUIRED</prop>
               <prop key="process*">PROPAGATION_REQUIRED</prop>                               
               <prop key="delete*">PROPAGATION_REQUIRED</prop>               
               <prop key="remove*">PROPAGATION_REQUIRED</prop>
               <prop key="send*">PROPAGATION_REQUIRED</prop>
  <prop key="upload*">PROPAGATION_REQUIRED</prop>               
               <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
           </props>
       </property></bean>

posted on 2012-05-24 09:59 周磊 阅读(3347) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: