Initial Commit
This commit is contained in:
commit
4b78ccbbd9
8 changed files with 179 additions and 0 deletions
26
src/Main.java
Normal file
26
src/Main.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
package hsmw.jotto5.beleg;
|
||||
|
||||
import hsmw.jotto5.beleg.views.*;
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
/**
|
||||
* Die Main-Klasse mit dem Einstiegspunkt der Anwendung
|
||||
*/
|
||||
public class Main {
|
||||
|
||||
/**
|
||||
* Main-Methode
|
||||
* @param args Die Programmargumente
|
||||
*/
|
||||
public static void main(String[] args) throws Exception {
|
||||
HttpServer s = HttpServer.create(new InetSocketAddress(8000), 0);
|
||||
|
||||
s.createContext("/main", new StartView());
|
||||
|
||||
s.setExecutor(null);
|
||||
s.start();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue