Skip to content

Commit 1613b1a

Browse files
authored
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 * 优化代码 * 优化代码 * 优化代码
1 parent 6a61710 commit 1613b1a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

frameworks/Java/smart-socket/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<maven.compiler.source>11</maven.compiler.source>
1212
<maven.compiler.target>11</maven.compiler.target>
1313
<log4j.version>2.11.0</log4j.version>
14-
<smartservlet.version>0.1.5-SNAPSHOT</smartservlet.version>
15-
<smartsocket.version>1.5.10-SNAPSHOT</smartsocket.version>
14+
<smartservlet.version>0.1.6</smartservlet.version>
15+
<smartsocket.version>1.5.11</smartsocket.version>
1616
</properties>
1717

1818
<dependencies>
@@ -79,6 +79,12 @@
7979
<id>sonatype-nexus-snapshots</id>
8080
<name>Sonatype Nexus Snapshots</name>
8181
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
82+
<releases>
83+
<enabled>false</enabled>
84+
</releases>
85+
<snapshots>
86+
<enabled>true</enabled>
87+
</snapshots>
8288
</repository>
8389
</repositories>
8490
<pluginRepositories>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void stateEvent0(AioSession session, StateMachineEnum stateMachineEnum, T
7070
processor.stateEvent(session, stateMachineEnum, throwable);
7171
}
7272
});
73-
bootstrap.pipeline(routeHandle).setPort(8080).start();
73+
bootstrap.httpHandler(routeHandle).setPort(8080).start();
7474
}
7575

7676
private static void initDB(HttpRouteHandler routeHandle) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void stateEvent0(AioSession session, StateMachineEnum stateMachineEnum, T
5858
}
5959
});
6060
bootstrap.setPort(8080)
61-
.pipeline(new HttpServerHandler() {
61+
.httpHandler(new HttpServerHandler() {
6262
@Override
6363
public void handle(HttpRequest request, HttpResponse response) throws IOException {
6464
containerRuntime.doHandle(request, response);

0 commit comments

Comments
 (0)