@Test

@Rollback

public void test(){

sqlFunction();

createTableFunction();

}

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

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

求指点

相关文章:

  • 2021-07-29
  • 2021-12-21
  • 2022-02-21
  • 2021-09-13
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
相关资源
相似解决方案