Open maoqingcode opened 4 years ago
单元测试会自动回滚 添加@Rollback(false)
@Transactional @Rollback(false) @Test public void test(){ userRepository.save(new User("AAA", 10)); userRepository.save(new User("BBB", 20)); userRepository.save(new User("CCC", 30)); }
单元测试会自动回滚 添加@Rollback(false)