mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-14 19:42:32 +00:00
21 lines
704 B
Java
21 lines
704 B
Java
|
|
||
|
import api.ApiService;
|
||
|
import repository.DataException;
|
||
|
import repository.RepositoryFactory;
|
||
|
import repository.RepositoryManager;
|
||
|
import repository.hsqldb.HSQLDBRepositoryFactory;
|
||
|
|
||
|
|
||
|
public class Start {
|
||
|
private static final String connectionUrl = "jdbc:hsqldb:mem:db/test;create=true;close_result=true;sql.strict_exec=true;sql.enforce_names=true;sql.syntax_mys=true";
|
||
|
|
||
|
public static void main(String args[]) throws DataException
|
||
|
{
|
||
|
RepositoryFactory repositoryFactory = new HSQLDBRepositoryFactory(connectionUrl);
|
||
|
RepositoryManager.setRepositoryFactory(repositoryFactory);
|
||
|
|
||
|
ApiService apiService = new ApiService();
|
||
|
apiService.start();
|
||
|
}
|
||
|
}
|