Closed
Description
I want to use Propagation.REQUIRES_NEW
to start a new transaction, but test2 never be executed and process has been hang up. Is there any thing wrong in my example?
here is my code,
@Override
@Transactional(rollbackFor = Exception.class)
public void test() {
((TestServiceImpl) AopContext.currentProxy()).test2();
log.info("2222222222222222222");
}
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void test2() {
log.info("11111111");
}