[DEV] ...

This commit is contained in:
Edouard DUPIN 2020-10-22 19:13:38 +02:00
parent 41a27ee9e1
commit fb0dc3b7d2
3 changed files with 13 additions and 1 deletions

Binary file not shown.

View File

@ -60,7 +60,8 @@ public class WebLauncher {
ConfigVariable.getDBLogin(),
ConfigVariable.getDBPassword(),
ConfigVariable.getDBName());
System.out.println(" ==> " + dbConfig);
HttpServer server = GrizzlyHttpServerFactory.createHttpServer(getBaseURI(), rc);
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override

View File

@ -7,6 +7,17 @@ public class DBConfig {
private final String password;
private final String dbName;
@Override
public String toString() {
return "DBConfig{" +
"hostname='" + hostname + '\'' +
", port=" + port +
", login='" + login + '\'' +
", password='" + password + '\'' +
", dbName='" + dbName + '\'' +
'}';
}
public DBConfig(String hostname, Integer port, String login, String password, String dbName) {
if (hostname == null) {
this.hostname = "localhost";