0
怎樣的roolback和Spring MVC中使用提交的JdbcTemplate怎樣的roolback並承諾Spring MVC中使用的JdbcTemplate
jdbc.xml中
<tx:annotation-driven transaction-manager="transactionManager"/>
<beans:bean id="ds"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<beans:property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<beans:property name="url"
value="jdbc:oracle:thin:@localhost:1521:db12c" />
<beans:property name="username" value="phutran" />
<beans:property name="password" value="Phut0107" />
</beans:bean>
<beans:bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<beans:property name="dataSource" ref="ds"></beans:property>
</beans:bean>
<beans:bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<beans:property name="dataSource" ref="ds"/>
</beans:bean>
誰可以幫幫我,謝謝:(。