new startup message
This commit is contained in:
parent
6c3e4cece2
commit
4d7792c469
@ -28,7 +28,7 @@ public class MySQLConnector extends Database {
|
|||||||
password);
|
password);
|
||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
System.err.println("no connection to database! start database server");
|
||||||
}
|
}
|
||||||
|
|
||||||
return con;
|
return con;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package db;
|
package db;
|
||||||
|
|
||||||
import javax.swing.table.DefaultTableModel;
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
@ -23,6 +23,7 @@ public class Webserver {
|
|||||||
|
|
||||||
server.setExecutor(null); // creates a default executor
|
server.setExecutor(null); // creates a default executor
|
||||||
server.start();
|
server.start();
|
||||||
|
System.out.println("Server available at http://127.0.0.1:8000 now");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user