use of tech.goodquestion.lembot.config.DatabaseConfig in project LemBot by Leminee.
the class DatabaseConnector method setupDataSource.
private static void setupDataSource() {
DatabaseConfig config = Config.getInstance().getDatabaseConfig();
dataSource = new MysqlConnectionPoolDataSource();
dataSource.setURL(config.getUrl());
dataSource.setUser(config.getUsername());
dataSource.setPassword(config.getPassword());
}
Aggregations