Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.caelum.jdbc;
- public Connection getConnection(){
- try {
- Class.forName("com.mysql.jdbc.Driver");
- //DriverManager.registerDriver(new com.mysql.jdbc.Driver());
- return DriverManager.getConnection("jdbc:mysql://localhost/fj21", "root", "822674");
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement