Spring 事务管理 —— 模拟转账案例(基于注解的事务控制)
domain 不变 dao: package com . fy . dao . impl ; import com . fy . dao . AccountDao ; import com . fy . domain . Account ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . jdbc . core . BeanPropertyRowMapper ; import org . springframework . jdbc . core . JdbcTemplate ; import org . springframework . jdbc . core . support . JdbcDaoSupport ; import org . springframework . stereotype . Repository ; import java . util . List ; /** * 账户的持久层实现类 */ @Repository ( "accountDao" ) public class AccountDaoImpl /*extends JdbcDaoSupport*/ implements