blob: c3f1a7876db60b0bfbe498b56b9756ed2dd206e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.orbekk.same;
import com.orbekk.same.http.HelloServlet;
import com.orbekk.same.http.ServerContainer;
import com.orbekk.same.http.TjwsServerBuilder;
public class TjwsApp {
public static void main(String[] args) {
ServerContainer server = new TjwsServerBuilder(8080)
.withServlet(new HelloServlet(), "/hello")
.build();
try {
server.start();
server.join();
} catch (Exception e) {
e.printStackTrace();
}
}
}
|