Browse Source

update to version 4.1.8 (#4882)

* Update VoovanTFB.java

* update to version 4.1.8

* Update VoovanTFB.java

* Update VoovanTFB.java
hely ho 6 years ago
parent
commit
e1280f11e7

+ 1 - 1
frameworks/Java/voovan/pom.xml

@@ -17,7 +17,7 @@
         <dependency>
             <groupId>org.voovan</groupId>
             <artifactId>voovan-framework</artifactId>
-            <version>4.1.6.3</version>
+            <version>4.1.8</version>
         </dependency>
     </dependencies>
     <build>

+ 2 - 5
frameworks/Java/voovan/src/main/java/org/voovan/VoovanTFB.java

@@ -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();	
 	}
 }