From 1934cb5fa2a6caa12e02493c6cde3ada873b717c Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sat, 22 Mar 2025 11:33:41 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/Java/smart-socket/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index 402693dcb80..ce10ecfc94b 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -22,6 +22,11 @@ feat-cloud-starter 0.8.2 + + io.github.smartboot.socket + aio-pro + 1.6.56 + tech.smartboot.servlet servlet-core From 69d7185c3bdd922fbf44af9329ce498caf1c9477 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sun, 30 Mar 2025 19:45:24 +0800 Subject: [PATCH 02/10] upgrade smart-socket --- frameworks/Java/smart-socket/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index ce10ecfc94b..90f087225e6 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -25,7 +25,7 @@ io.github.smartboot.socket aio-pro - 1.6.56 + 1.5.58-SNAPSHOT tech.smartboot.servlet From e8e2b614874fead69958fef1f15e2c3429dbd172 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sun, 30 Mar 2025 19:46:19 +0800 Subject: [PATCH 03/10] upgrade smart-socket --- frameworks/Java/smart-socket/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index 90f087225e6..072032b1248 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -92,6 +92,17 @@ Sonatype Nexus Snapshots https://oss.sonatype.org/content/repositories/snapshots + + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + + From c883b1c4c121f340a20125fdfe20410305164502 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Fri, 11 Apr 2025 17:23:28 +0800 Subject: [PATCH 04/10] upgrade smart-socket --- frameworks/Java/smart-socket/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index 072032b1248..e10d2b383b9 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -20,12 +20,12 @@ tech.smartboot.feat feat-cloud-starter - 0.8.2 + 0.8.3-SNAPSHOT io.github.smartboot.socket aio-pro - 1.5.58-SNAPSHOT + 1.5.57 tech.smartboot.servlet From c8ab4e985332d8f924454d2fb7117e7fc31b9b53 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Fri, 11 Apr 2025 17:43:40 +0800 Subject: [PATCH 05/10] upgrade smart-socket --- frameworks/Java/smart-socket/pom.xml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index e10d2b383b9..b3af9102555 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -11,7 +11,7 @@ 21 21 2.17.1 - 2.9.1 + 3.1-SNAPSHOT 5.0.0 0.9.23 @@ -87,11 +87,6 @@ Central Repository https://repo.maven.apache.org/maven2 - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots - Central Portal Snapshots central-portal-snapshots From 00aef53a5b28e9aa232209234f72cc96ed2fb947 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Thu, 1 May 2025 20:56:14 +0800 Subject: [PATCH 06/10] upgrade feat --- frameworks/Java/smart-socket/pom.xml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index b3af9102555..6a22fff8ec6 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -20,12 +20,7 @@ tech.smartboot.feat feat-cloud-starter - 0.8.3-SNAPSHOT - - - io.github.smartboot.socket - aio-pro - 1.5.57 + 0.8.10 tech.smartboot.servlet From 6e2454990259e85195b865e09019744c56fe1a1f Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sat, 3 May 2025 17:46:50 +0800 Subject: [PATCH 07/10] upgrade feat --- frameworks/Java/smart-socket/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index 6a22fff8ec6..e3eb88eaaa9 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -22,6 +22,11 @@ feat-cloud-starter 0.8.10 + + io.github.smartboot.socket + aio-pro + 1.5.62-SNAPSHOT + tech.smartboot.servlet servlet-core From fb070f6666475e28150f1940ac3d98284bbdc63a Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Mon, 5 May 2025 18:03:09 +0800 Subject: [PATCH 08/10] upgrade feat --- frameworks/Java/smart-socket/pom.xml | 2 +- .../main/java/org/smartboot/http/MultipleQueriesHandler.java | 2 +- .../src/main/java/org/smartboot/http/SingleQueryHandler.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index e3eb88eaaa9..f16d0f03860 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -20,7 +20,7 @@ tech.smartboot.feat feat-cloud-starter - 0.8.10 + 0.9.0 io.github.smartboot.socket diff --git a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java index 200f8ee2606..3ead0475962 100644 --- a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java +++ b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java @@ -27,7 +27,7 @@ public MultipleQueriesHandler(DataSource dataSource) { } @Override - public void handle(HttpRequest httpRequest, CompletableFuture completableFuture) throws IOException { + public void handle(HttpRequest httpRequest, CompletableFuture completableFuture) throws IOException { HttpResponse response = httpRequest.getResponse(); Thread.startVirtualThread(() -> { try { diff --git a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/SingleQueryHandler.java b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/SingleQueryHandler.java index 326ac0e8782..c6f9f78b263 100644 --- a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/SingleQueryHandler.java +++ b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/SingleQueryHandler.java @@ -26,7 +26,7 @@ public SingleQueryHandler(DataSource dataSource) { } @Override - public void handle(HttpRequest httpRequest, CompletableFuture completableFuture) throws IOException { + public void handle(HttpRequest httpRequest, CompletableFuture completableFuture) throws IOException { HttpResponse response = httpRequest.getResponse(); Thread.startVirtualThread(() -> { try { From aac0647ac9ea475d73aa0c86c0b737663be886cf Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Tue, 3 Jun 2025 09:28:25 +0800 Subject: [PATCH 09/10] upgrade feat --- frameworks/Java/smart-socket/pom.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index f16d0f03860..7cf9b85b3e7 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -20,13 +20,13 @@ tech.smartboot.feat feat-cloud-starter - 0.9.0 - - - io.github.smartboot.socket - aio-pro - 1.5.62-SNAPSHOT + 1.1.0-SNAPSHOT + + + + + tech.smartboot.servlet servlet-core From ccfc07fcd602706ec9b8a96ceca8cef55bd6df80 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Fri, 13 Jun 2025 10:11:25 +0800 Subject: [PATCH 10/10] upgrade feat --- .../main/java/org/smartboot/http/MultipleQueriesHandler.java | 4 ++-- .../src/main/java/org/smartboot/http/UpdateHandler.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java index 3ead0475962..07147048a34 100644 --- a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java +++ b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java @@ -1,7 +1,7 @@ package org.smartboot.http; -import tech.smartboot.feat.core.common.utils.NumberUtils; +import tech.smartboot.feat.core.common.FeatUtils; import tech.smartboot.feat.core.server.HttpHandler; import tech.smartboot.feat.core.server.HttpRequest; import tech.smartboot.feat.core.server.HttpResponse; @@ -31,7 +31,7 @@ public void handle(HttpRequest httpRequest, CompletableFuture completableF HttpResponse response = httpRequest.getResponse(); Thread.startVirtualThread(() -> { try { - int queries = Math.min(Math.max(NumberUtils.toInt(httpRequest.getParameter("queries"), 1), 1), 500); + int queries = Math.min(Math.max(FeatUtils.toInt(httpRequest.getParameter("queries"), 1), 1), 500); World[] worlds = new World[queries]; try (Connection connection = dataSource.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM World WHERE id=?");) { diff --git a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/UpdateHandler.java b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/UpdateHandler.java index b2b37a5f424..85d990a71b4 100644 --- a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/UpdateHandler.java +++ b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/UpdateHandler.java @@ -1,7 +1,7 @@ package org.smartboot.http; -import tech.smartboot.feat.core.common.utils.NumberUtils; +import tech.smartboot.feat.core.common.FeatUtils; import tech.smartboot.feat.core.server.HttpHandler; import tech.smartboot.feat.core.server.HttpRequest; import tech.smartboot.feat.core.server.HttpResponse; @@ -29,7 +29,7 @@ public UpdateHandler(DataSource dataSource) { @Override public void handle(HttpRequest request) throws IOException { HttpResponse response = request.getResponse(); - int queries = Math.min(Math.max(NumberUtils.toInt(request.getParameter("queries"), 1), 1), 500); + int queries = Math.min(Math.max(FeatUtils.toInt(request.getParameter("queries"), 1), 1), 500); World[] worlds = new World[queries]; StringJoiner updateSql = new StringJoiner( ", ",