Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConnectionDb {
- Connection connect = null;
- public Connection getSqlConnection() throws ClassNotFoundException, SQLException {
- Class.forName("com.mysql.jdbc.Driver");
- connect = (Connection) DriverManager.getConnection("jdbc:mysql://172.20.201.251:3306/jbdc", "root", "tcs#1234");
- return connect;
- }
- }
Add Comment
Please, Sign In to add comment