Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public class DatabaseManager {
  2.  
  3. private DatabaseClient[] databaseClients;
  4. private HikariDataSource hikariDataSource;
  5.  
  6. public DatabaseManager(String absoluteFilePath) {
  7. final HikariConfig hikariConfig = new HikariConfig(absoluteFilePath);
  8. this.hikariDataSource = new HikariDataSource(hikariConfig);
  9.  
  10.  
  11. // devuelve null u-u
  12. System.out.println(hikariConfig.getUsername());
  13.  
  14.  
  15. }
  16. }
  17.  
  18. ## Database Settings
  19. dataSourceClassName=org.mariadb.jdbc.MySQLDataSource
  20. dataSource.user=root
  21. dataSource.password=
  22. dataSource.databaseName=imagine-db
  23. dataSource.portNumber=3306
  24. dataSource.serverName=localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement