We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 866739e commit e86f052Copy full SHA for e86f052
1 file changed
JavaSecurity/CodeReview/JavaSec-Code/MybatiSqli/src/main/java/com/drunkbaby/controller/SQLI.java
@@ -120,14 +120,17 @@ public String jdbc_sqli_sec(@RequestParam("username") String username) {
120
logger.info(info);
121
}
122
123
- rs.close();
124
- con.close();
+
125
126
} catch (ClassNotFoundException e) {
127
logger.error("Sorry, can`t find the Driver!");
128
e.printStackTrace();
129
} catch (SQLException e) {
130
logger.error(e.toString());
+ } finally {
131
+ st.close();
132
+ rs.close();
133
+ con.close();
134
135
return result.toString();
136
0 commit comments