Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConnectionFactory {
- public Connection getConnection() {
- try {
- return DriverManager.getConnection("jdbc:mysql://127.0.0.1/bdvendas", "usuario", "123");
- } catch (Exception erro) {
- throw new RuntimeException(erro);
- }
- }
Add Comment
Please, Sign In to add comment