|
@@ -40,6 +40,7 @@ public class VoovanTFB {
|
|
|
resp.write(HELLO_WORLD);
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
//性能测试请求
|
|
|
webServer.get("/json", new HttpRouter() {
|
|
|
public void process(HttpRequest req, HttpResponse resp) throws Exception {
|
|
@@ -48,10 +49,6 @@ public class VoovanTFB {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-
|
|
|
- webServer.syncServe();
|
|
|
-
|
|
|
- TEnv.sleep(2000);
|
|
|
- Logger.setEnable(true);
|
|
|
+ webServer.serve();
|
|
|
}
|
|
|
}
|