stop.bat 393 B

12345678910111213141516
  1. @echo off
  2. if not exist "%JAVA_HOME%\bin\jps.exe" echo 请先设置您的环境变量 & EXIT /B 1
  3. rem 启动入口类,该脚本文件用于别的项目时要改这里
  4. set MAIN_CLASS=com.jfinal.club.common.JFinalClubConfig
  5. setlocal
  6. set "PATH=%JAVA_HOME%\bin;%PATH%"
  7. echo killing jfinal server
  8. for /f "tokens=1" %%i in ('jps -l ^| find %MAIN_CLASS%') do ( taskkill /F /PID %%i )
  9. echo Done!