Browse Source

Update voovan (#4455)

* Update VoovanTFB.java

* Delete framework.properties
hely ho 6 years ago
parent
commit
f8aa2d3111

+ 0 - 26
frameworks/Java/voovan/src/main/java/framework.properties

@@ -1,26 +0,0 @@
-#if it set true, framework will free noheapmemory immediately,  default is true
-NoHeapManualRelease=true
-
-#when jvm nohup object is recycle, every this interval whill release nohup memory, default is 30
-NoHeapReleaseInterval = 30
-
-#one cpu core's min thread size,  default is 2
-ThreadPoolMinSize= 5
-
-#one cpu core's max thread size,  default is 50
-ThreadPoolMaxSize= 100
-
-#thread pool status log output interval, ,  default is 1000
-ThreadPoolStatusInterval = 3000
-
-#ByteBufferChannel max size, unit byte, default is 1024*1024*2
-ByteBufferChannelMaxSize = 20971520
-
-#Cache used serialize method , chose with: JDK or JSON, default is jdk
-SerializeType = JDK
-
-#if set this argument is true, Convernt escape char in JSON, like: \f \b \r \n \t to unicode for browser parse the json, default is true
-JSONConvertEscapeChar = true;
-
-#the host where is the remote class source locations
-#RemoteClassSource=127.0.0.1:3001

+ 1 - 0
frameworks/Java/voovan/src/main/java/org/voovan/VoovanTFB.java

@@ -22,6 +22,7 @@ public class VoovanTFB {
 	webServerConfig.setKeepAliveTimeout(20000);
 	webServerConfig.setHost("0.0.0.0");
 	webServerConfig.setPort(8080);
+	webServerConfig.setCache(true);
 	webServerConfig.getModuleonfigs().clear();
 	webServerConfig.getRouterConfigs().clear();
         WebServer webServer = WebServer.newInstance(webServerConfig);