Transaction rollback on SQLException using new try-with-resources block

后端 未结 5 1658
遇见更好的自我
遇见更好的自我 2020-12-12 19:21

I have a problem with try-with-resources and I am asking just to be sure. Can I use it, if I need to react on exception, and I still need the resource in catch block? Exampl

5条回答
提交回复
热议问题