|
@@ -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 class MultipleQueriesHandler implements HttpHandler {
|
|
|
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=?");) {
|