[DEV] ...
This commit is contained in:
parent
41a27ee9e1
commit
fb0dc3b7d2
Binary file not shown.
@ -60,7 +60,8 @@ public class WebLauncher {
|
|||||||
ConfigVariable.getDBLogin(),
|
ConfigVariable.getDBLogin(),
|
||||||
ConfigVariable.getDBPassword(),
|
ConfigVariable.getDBPassword(),
|
||||||
ConfigVariable.getDBName());
|
ConfigVariable.getDBName());
|
||||||
|
|
||||||
|
System.out.println(" ==> " + dbConfig);
|
||||||
HttpServer server = GrizzlyHttpServerFactory.createHttpServer(getBaseURI(), rc);
|
HttpServer server = GrizzlyHttpServerFactory.createHttpServer(getBaseURI(), rc);
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
|
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -7,6 +7,17 @@ public class DBConfig {
|
|||||||
private final String password;
|
private final String password;
|
||||||
private final String dbName;
|
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) {
|
public DBConfig(String hostname, Integer port, String login, String password, String dbName) {
|
||||||
if (hostname == null) {
|
if (hostname == null) {
|
||||||
this.hostname = "localhost";
|
this.hostname = "localhost";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user