spring之事物属性源配置实例

 <bean id="nameMatchTransactionAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"> <property name="nameMap"> <map> <entry key="insert*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="create*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="delete*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="update*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="define*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="save*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="add*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="deliver*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="quality*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="searchOrUpdate*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="batch*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="apply*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="push*"> <value>PROPAGATION_REQUIRED,-BusinessServiceException</value> </entry> <entry key="get*"> <value>PROPAGATION_SUPPORTS,readOnly</value> </entry> <entry key="search*"> <value>PROPAGATION_SUPPORTS,readOnly</value> </entry> <entry key="queryFor*"> <value>PROPAGATION_SUPPORTS,readOnly</value> </entry> <entry key="list*"> <value>PROPAGATION_SUPPORTS,readOnly</value> </entry> </map> </property> </bean>


你可能感兴趣的:(spring之事物属性源配置实例)