Commit ba505a4b authored by Quxl's avatar Quxl

x

parent d8535e58
...@@ -107,8 +107,10 @@ public class SqlTestController { ...@@ -107,8 +107,10 @@ public class SqlTestController {
return Rjx.jsonOk().setMessage(ExceptionHandler.toStackString(e).toString()); return Rjx.jsonOk().setMessage(ExceptionHandler.toStackString(e).toString());
} finally { } finally {
try { try {
if(connection != null && !connection.isClosed()) {
connection.close(); connection.close();
} catch (SQLException e) { }
} catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment