spring的事务回滚问题

@Test

@Rollback

public void test(){

sqlFunction();

createTableFunction();

}

createTableFuntion中包含了建表操作和其他操作1,sqlFunction包含了sql操作2(insert),由于建表操作不能回滚(见上篇),导致rollback有问题:

操作1除建表操作外能够回滚,操作2却不能回滚!

求指点

原文地址:https://www.cnblogs.com/lingear/p/3012531.html