Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在第一个 catch 语句出现之前,我提示我在代码中放入一个带有“connection.close”的 finally 语句。我没有看到任何方法来实现它,你能否给我一个简短的提示,我该如何处理?!非常感谢!
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.