Advertisement
Guest User

Application class

a guest
Oct 26th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package app;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.SQLException;
  6. import java.util.Properties;
  7.  
  8. public class Application {
  9.  
  10.     public static void main(String[] args) throws SQLException {
  11.         String user = "root";
  12.         String password = "12345";
  13.  
  14.         Properties properties = new Properties();
  15.         properties.setProperty("user", user);
  16.         properties.setProperty("password", password);
  17.  
  18.         Connection connection = DriverManager
  19.                 .getConnection("jdbc:mysql://localhost:3306/minions_db", properties);
  20.  
  21.         Engine engine = new Engine(connection);
  22.  
  23.         engine.run();
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement