spring的事务管理applicationContext.xml的配置
<!-- 事务管理 -->
?<bean id="TransactionManager"
??/>
??</property>
?</bean>
?<bean id="proxy"
??/>
??</property>
??<property name="transactionAttributes">
???<props>
????<prop key="find*">PROPAGATION_REQUIRED, readOnly</prop>
????<prop key="create*">PROPAGATION_REQUIRED</prop>
????<prop key="update*">PROPAGATION_REQUIRED</prop>
????<prop key="modify*">PROPAGATION_REQUIRED</prop>
????<prop key="delete*">PROPAGATION_REQUIRED</prop>
????<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
????<prop key="*">PROPAGATION_REQUIRED</prop>
???</props>
??</property>
?</bean>
?<!-- 配置要管理的service -->
?<bean id="proxyStuInfo" parent="proxy">
??<property name="target">
? <!--这里添加你要管理的事物即可-->
???<ref bean="userService" />
??</property>
?</bean>