Created
March 2, 2019 02:15
-
-
Save lubarinobr/3aec5365fbd1b42d870a806b443f2908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Connection connect() throws ClassNotFoundException, SQLException { | |
Class.forName("com.mysql.jdbc.Driver"); | |
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","username", "password"); | |
return connection; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment