JdbcTemplate 事物无法回滚!
<tx:advice id="txAdvices" transaction-manager="txManager">
<!-- the transactional semantics... -->
<tx:attributes>
<!-- all methods starting with 'get' are read-only -->
<tx:method name="get*" read-only="true" />
<tx:method name="find*" read-only="true" />
<!-- other methods use the default transaction settings (see below) -->
<tx:method name="*" propagation="REQUIRED" rollback-for="java.lang.RuntimeException"/>
</tx:attributes>
</tx:advice>
<!--jdbc事物-->
<aop:config>
<aop:pointcut id="serviceMethodsjdbc" expression="execution(* com.starscube.prms.service.ext..*(..))" />
<aop:advisor advice-ref="txAdvices" pointcut-ref="serviceMethodsjdbc" />
</aop:config>
<!--jdbc事物-->
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
我在 实现类面 action 调用实现类中的 A方法 在A方法中在调用B方法,当A执行报错够B方法中的事物无法回滚。