Исправил что бы во входящих запросах тоже был  payload
This commit is contained in:
AidarKC
2025-12-09 18:34:17 +03:00
parent 199769cac0
commit 2b5fa16824
8 changed files with 97 additions and 37 deletions
+6 -2
View File
@@ -21,11 +21,15 @@ public final class WsServer {
AppConfig config = AppConfig.getInstance();
int port = 7070;
try {
port = Integer.parseInt(config.getParam("server.port"),7070);
String portStr = config.getParam("server.port");
if (portStr != null && !portStr.isBlank()) {
port = Integer.parseInt(portStr.trim());
}
} catch (Exception e) {
log.info("Установите параметр server.port в файле настроек");
log.info("Не удалось прочитать параметр server.port, используем порт по умолчанию {}", port);
}
Server server = new Server(port);
ServletContextHandler context = new ServletContextHandler();