1. Download nssm (Download: http://www.nssm.cc/release/nssm-2.24.zip)
2. The packaged jar package into a folder, write run.bat file, run.bat content java -jar xxxx.jar
3. Find the corresponding nssm.exe file, open cmd window, enter the command: nssm.exe install screen appears:
service name Fill in the service name.
Fill in the log file output
Click Install Service
4. Open the windows service, you can see the installation of the service, start the service just fine