Browse Source

Update voovan to version 4.3.7 and open log for debugger (#5966)

* Update VoovanTFB.java

* Update pom.xml

* Update voovan.dockerfile

* Update VoovanTFB.java

* Update pom.xml
hely ho 5 years ago
parent
commit
876bac5838

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

@@ -1,23 +1,20 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
-
     <groupId>com.techempower</groupId>
     <artifactId>voovan-bench</artifactId>
     <version>0.1</version>
-
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <maven.compiler.source>11</maven.compiler.source>
         <maven.compiler.target>11</maven.compiler.target>
         <main.class>org.voovan.VoovanTFB</main.class>
     </properties>
-
     <dependencies>
         <dependency>
             <groupId>org.voovan</groupId>
             <artifactId>voovan-framework</artifactId>
-            <version>4.3.6</version>
+            <version>4.3.7</version>
         </dependency>
     </dependencies>
     <build>
@@ -31,7 +28,6 @@
                     <debug>false</debug>
                 </configuration>
             </plugin>
-
             <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <version>3.1.0</version>

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

@@ -36,7 +36,7 @@ public class VoovanTFB {
                 }
                 
                 public int hashCode(){
-                    return message.hashCode();
+                     return 98821452;
                 }
         }
         
@@ -51,7 +51,7 @@ public class VoovanTFB {
                 webServerConfig.setPort(8080);
                 webServerConfig.setHotSwapInterval(0);
                 webServerConfig.setCache(true);
-                webServerConfig.getModuleonfigs().clear();
+                webServerConfig.getModuleConfigs().clear();
                 webServerConfig.getRouterConfigs().clear();
                 webServerConfig.setEnablePathVariables(false);
                 webServerConfig.setEnableWebSocket(false);
@@ -72,7 +72,7 @@ public class VoovanTFB {
                         }
                 });
 
-                Logger.setEnable(false);
+                //Logger.setEnable(false);
 
                 webServer.serve();
         }

+ 1 - 0
frameworks/Java/voovan/voovan.dockerfile

@@ -16,6 +16,7 @@ CMD java -DCheckTimeout=false \
     -DAsyncSend=false \
     -DAsyncRecive=false \
     -DByteBufferAnalysis=-1\
+    -DServer=v \
     -server -Xms2g -Xmx2g \
     -XX:+DoEscapeAnalysis \
     -XX:+AlwaysPreTouch \