Skip to content

Commit ef93537

Browse files
authored
change smart-http to feat (#9479)
* 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 * 优化代码 * 优化代码 * 优化代码 * remove aio-pro * remove headerLimiter * update hikaricp version * replace json util * 更新线程模型 * upgrade smart-servlet to 0.1.9-SNAPSHOT * config thread num * config thread num * revert code * revert code * upgrade smart-servlet to 0.2.1-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 0.6-SNAPSHOT * upgrade smart-servlet to 1.0-SNAPSHOT * upgrade smart-servlet to 1.4 * upgrade smart-servlet to 1.5-SNAPSHOT * 启用虚拟线程 * 启用虚拟线程 * 适配最新版 * 适配最新版 * 适配最新版 * 适配最新版 * 适配最新版 * 适配最新版 * 适配最新版 * 适配最新版
1 parent 7d7d347 commit ef93537

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

frameworks/Java/smart-socket/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<maven.compiler.source>21</maven.compiler.source>
1212
<maven.compiler.target>21</maven.compiler.target>
1313
<log4j.version>2.17.1</log4j.version>
14-
<smartservlet.version>2.5</smartservlet.version>
14+
<smartservlet.version>2.7</smartservlet.version>
1515
<hikaricp.version>5.0.0</hikaricp.version>
1616
<jsoniter.version>0.9.23</jsoniter.version>
1717
</properties>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import com.zaxxer.hikari.HikariConfig;
1212
import com.zaxxer.hikari.HikariDataSource;
1313
import org.smartboot.Message;
14-
import org.smartboot.http.server.HttpBootstrap;
15-
import org.smartboot.http.server.HttpRequest;
16-
import org.smartboot.http.server.HttpResponse;
17-
import org.smartboot.http.server.HttpServerHandler;
18-
import org.smartboot.http.server.handler.HttpRouteHandler;
14+
import tech.smartboot.feat.core.server.HttpRequest;
15+
import tech.smartboot.feat.core.server.HttpResponse;
16+
import tech.smartboot.feat.core.server.HttpServer;
17+
import tech.smartboot.feat.core.server.HttpServerHandler;
18+
import tech.smartboot.feat.core.server.handler.HttpRouteHandler;
1919

2020
import javax.sql.DataSource;
2121

@@ -25,9 +25,9 @@ public class Bootstrap {
2525
public static void main(String[] args) {
2626
int cpuNum = Runtime.getRuntime().availableProcessors();
2727
// 定义服务器接受的消息类型以及各类消息对应的处理器
28-
HttpBootstrap bootstrap = new HttpBootstrap();
28+
HttpServer bootstrap = new HttpServer();
2929
bootstrap.configuration()
30-
.threadNum(cpuNum)
30+
.threadNum(cpuNum + 1)
3131
.headerLimiter(0)
3232
.readBufferSize(1024 * 4)
3333
.writeBufferSize(1024 * 4);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.jsoniter.spi.JsonException;
66
import com.jsoniter.spi.Slice;
77
import jakarta.servlet.http.HttpServletResponse;
8-
import org.smartboot.http.server.HttpResponse;
8+
import tech.smartboot.feat.core.server.HttpResponse;
99

1010
import java.io.IOException;
1111

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package org.smartboot.http;
22

3-
import org.smartboot.http.common.utils.NumberUtils;
4-
import org.smartboot.http.server.HttpRequest;
5-
import org.smartboot.http.server.HttpResponse;
6-
import org.smartboot.http.server.HttpServerHandler;
3+
4+
import tech.smartboot.feat.core.common.utils.NumberUtils;
5+
import tech.smartboot.feat.core.server.HttpRequest;
6+
import tech.smartboot.feat.core.server.HttpResponse;
7+
import tech.smartboot.feat.core.server.HttpServerHandler;
78

89
import javax.sql.DataSource;
910
import java.io.IOException;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package org.smartboot.http;
22

3-
import org.smartboot.http.server.HttpRequest;
4-
import org.smartboot.http.server.HttpResponse;
5-
import org.smartboot.http.server.HttpServerHandler;
3+
4+
import tech.smartboot.feat.core.server.HttpRequest;
5+
import tech.smartboot.feat.core.server.HttpResponse;
6+
import tech.smartboot.feat.core.server.HttpServerHandler;
67

78
import javax.sql.DataSource;
89
import java.io.IOException;

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package org.smartboot.http;
22

3-
import org.smartboot.http.common.utils.NumberUtils;
4-
import org.smartboot.http.server.HttpRequest;
5-
import org.smartboot.http.server.HttpResponse;
6-
import org.smartboot.http.server.HttpServerHandler;
3+
4+
import tech.smartboot.feat.core.common.utils.NumberUtils;
5+
import tech.smartboot.feat.core.server.HttpRequest;
6+
import tech.smartboot.feat.core.server.HttpResponse;
7+
import tech.smartboot.feat.core.server.HttpServerHandler;
78

89
import javax.sql.DataSource;
910
import java.io.IOException;

0 commit comments

Comments
 (0)