2019-09-20 15:02:17 +02:00
|
|
|
import db.jdcb;
|
|
|
|
|
2019-09-27 16:37:59 +02:00
|
|
|
import java.io.IOException;
|
2019-09-27 10:58:13 +02:00
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
2019-09-13 15:41:40 +02:00
|
|
|
public class main {
|
|
|
|
public static void main(String[] args) {
|
2019-09-20 15:02:17 +02:00
|
|
|
/*
|
2019-09-13 16:48:53 +02:00
|
|
|
Date D=new Date();
|
|
|
|
D.getdata();
|
|
|
|
D.printList();
|
2019-09-20 15:02:17 +02:00
|
|
|
*/
|
2019-09-27 10:58:13 +02:00
|
|
|
|
2019-09-27 16:37:59 +02:00
|
|
|
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
|
|
|
try {
|
|
|
|
Thread.sleep(200);
|
|
|
|
System.out.println("Shutting down ...");
|
|
|
|
|
|
|
|
//shutdown routine
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
|
2019-09-20 16:46:13 +02:00
|
|
|
Thread mythread = new Thread(() -> new website.Webserver().startserver());
|
|
|
|
mythread.start();
|
2019-09-13 16:48:53 +02:00
|
|
|
|
2019-09-20 16:46:13 +02:00
|
|
|
|
|
|
|
System.out.println("thread started");
|
|
|
|
|
2019-09-27 10:58:13 +02:00
|
|
|
|
|
|
|
|
2019-09-13 15:41:40 +02:00
|
|
|
}
|
|
|
|
}
|