spring4 + junit4 事物无法回滚

在使用junit 4 测试spring4代码时, 事物始终无法回滚, 即使已经在方法中增加了@Transactiona 和 @Rollback(true)标签, 但是每次执行后数据还是插入到数据库中. 异常代码: ...

December 12, 2014 · 1 分钟 · 335 字