我有这个测试课
@TransactionConfiguration(defaultRollback = false)
public class CandidateServiceTest extends AbstractServiceTest {
@Test
public void add() {
}
...
}
@ContextConfiguration(locations = { "classpath:/test/BeanConfig.xml" })
public class AbstractServiceTest extends AbstractTransactionalJUnit4SpringContextTests{
...
}
所有方法CandidateServiceTest
都是事务性的。我怎样才能改变CandidateServiceTest
它的所有方法都是 NonTransactional ?