1

在第一个 catch 语句出现之前,我提示我在代码中放入一个带有“connection.close”的 finally 语句。我没有看到任何方法来实现它,你能否给我一个简短的提示,我该如何处理?!非常感谢!

4

1 回答 1

1

Hint is just a hint. You should close connections you created. However, you didn't create it in this method and you might want to use it again later so I suspect it would be a bad idea to close it here.

于 2013-05-20T17:51:45.587 回答