Browse Source

update smart-servlet to 0.1.6 (#6762)

* update smart-servlet to 0.1.3-SNAPSHOT

* update aio-enhance to 1.0.3-SNAPSHOT

* smart-servlet bugfix

* bugfix

* update smart-socket to 1.5.6-SNAPSHOT

* remove file

* update aio-enhance to 1.0.4-SNAPSHOT

* 优化代码

* 优化代码

* update smart-socket to 1.5.6

* config threadNum

* update smart-socket to 1.5.7-SNAPSHOT

* 优化代码

* update smart-socket to 1.5.10-SNAPSHOT

* 优化代码

* 优化代码

* 优化代码

* 异常aio-enhance

* 优化代码

* 优化代码

* 优化代码
三刀 4 years ago
parent
commit
1613b1a1d9

+ 8 - 2
frameworks/Java/smart-socket/pom.xml

@@ -11,8 +11,8 @@
         <maven.compiler.source>11</maven.compiler.source>
         <maven.compiler.target>11</maven.compiler.target>
         <log4j.version>2.11.0</log4j.version>
-        <smartservlet.version>0.1.5-SNAPSHOT</smartservlet.version>
-        <smartsocket.version>1.5.10-SNAPSHOT</smartsocket.version>
+        <smartservlet.version>0.1.6</smartservlet.version>
+        <smartsocket.version>1.5.11</smartsocket.version>
     </properties>
 
     <dependencies>
@@ -79,6 +79,12 @@
             <id>sonatype-nexus-snapshots</id>
             <name>Sonatype Nexus Snapshots</name>
             <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
         </repository>
     </repositories>
     <pluginRepositories>

+ 1 - 1
frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java

@@ -70,7 +70,7 @@ public class Bootstrap {
                         processor.stateEvent(session, stateMachineEnum, throwable);
                     }
                 });
-        bootstrap.pipeline(routeHandle).setPort(8080).start();
+        bootstrap.httpHandler(routeHandle).setPort(8080).start();
     }
 
     private static void initDB(HttpRouteHandler routeHandle) {

+ 1 - 1
frameworks/Java/smart-socket/src/main/java/org/smartboot/servlet/Bootstrap.java

@@ -58,7 +58,7 @@ public class Bootstrap {
                     }
                 });
         bootstrap.setPort(8080)
-                .pipeline(new HttpServerHandler() {
+                .httpHandler(new HttpServerHandler() {
                     @Override
                     public void handle(HttpRequest request, HttpResponse response) throws IOException {
                         containerRuntime.doHandle(request, response);