From f9663b8e3f029625349623adfdaba74f65fe29bd Mon Sep 17 00:00:00 2001 From: yuejiajun <1530620364@qq.com> Date: Sun, 17 Aug 2025 12:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E7=B3=BB=E7=BB=9F=EF=BC=8C?= =?UTF-8?q?=E5=90=AF=E5=8A=A8bat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/simulation/Resources/simulation.bat | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 server/simulation/Resources/simulation.bat diff --git a/server/simulation/Resources/simulation.bat b/server/simulation/Resources/simulation.bat new file mode 100644 index 0000000..c4901bd --- /dev/null +++ b/server/simulation/Resources/simulation.bat @@ -0,0 +1,19 @@ +@echo off +chcp 65001 >nul +title Simulation Quick Start + +if exist "%SIMULATION_MANAGE_BIN%" ( + :: start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dserver.port=28280 -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc --enable-preview -Dproject.database-ip=127.0.0.1 -Dproject.redis-url=127.0.0.1 -Djasypt.encryptor.password=jwnwfA1pIoLihBptgbR8S6UEEAfGurjG -Dproject.rocketmq-url=127.0.0.1:8081 -Dproject.minio-url=http://127.0.0.1:9000 -Dproject.eval-service-url=http://127.0.0.1:28480/evaluation/samples/receiveSync -jar %SIMULATION_MANAGE_BIN%" + start "Simulation Server" cmd /k "chcp 65001 && title Simulation Server && java -Dspring.profiles.active=test,mysql,redis,rocketmq,springdoc %SIMULATION_VM_PARAMS% -jar %SIMULATION_MANAGE_BIN%" +) + +if exist "%SIMULATION_MANAGE_BIN%" ( + cd %SIMULATION_MAIN%\web + start "Simulation Website" cmd /k "title Simulation Website && simulation-web.exe -c conf/web.conf" +) + +echo 实验服务已启动: +echo - SimulationServer (端口: 28280) +echo - SimulationWebsite (端口: 18280) + +pause \ No newline at end of file