Class.forName!
This commit is contained in:
parent
d3d22bbec9
commit
3b10207503
@ -12,6 +12,17 @@ import mineplex.serverdata.database.column.Column;
|
||||
|
||||
public abstract class RepositoryBase
|
||||
{
|
||||
static
|
||||
{
|
||||
try
|
||||
{
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
} catch (ClassNotFoundException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private DataSource _dataSource; // Connection pool
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user