求教!Spring中的事务注册问题
一直在看SSM框架,在配置事务的时候迷了,找了一份别人写的简单工程来看,现在是一个学生在线名片的系统,可以实现注册登录等功能,并且登录进去之后可以实现对个人通讯录的增删改查功能,但是在看他的配置文件时,却发现事务管理只配了insert和select,但是程序能够正常运行,求大神解释一下注册和不注册这个事务有什么区别???
<!-- 注册事务管理器 -->
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"></property>
</bean>
<!-- 注册事务通知 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="insert*" isolation="DEFAULT" propagation="REQUIRED"/>
<tx:method name="select*" isolation="DEFAULT" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<!-- aop配置 -->
<aop:config>
<aop:pointcut expression="execution(* *..service.*.*(..))" id="studentPointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="studentPointcut"/>
</aop:config>
</beans>