Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConnectorDB {
- public static Connection getConnection() throws SQLException {
- ResourceBundle resource = ResourceBundle.getBundle("database");
- String url = resource.getString("db.url");
- String user = resource.getString("db.user");
- String pass = resource.getString("db.password");
- return DriverManager.getConnection(url, user, pass);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement