Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Connection getConnection() throws SQLException {
- try {
- Class.forName("com.mysql.jdbc.Driver");
- } catch (ClassNotFoundException e) {
- throw new SQLException(e);
- }
- return DriverManager.getConnection("jdbc:mysql://localhost/dbtest",
- "root", "acesarl@2019");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement