使用preparedStatement來解決sql注入漏洞

使用Statement來執行sql語句,若是語句中鏈接的有變量,那麼能夠對變量進行一些修改使繞過sql語句的判斷條件。好比:java public static boolean login(String username,String password) { Connection conn = null; Statement stmt = null; ResultSet rs = nu
相關文章
相關標籤/搜索