工具下载地址
https://github.com/kohsuke/winsw/releases
配置文件
<configuration>
<!-- ID of the service. It should be unique accross the Windows system-->
<id>Tomcat8forULP</id>
<!-- Display name of the service -->
<name>Tomcat8forULP</name>
<!-- Service description -->
<description>Tomcat8forULP</description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\JRE_32\jre1.8.0_101\bin\java</executable>
<arguments> -jar "%BASE%\mrps-web.jar"</arguments>
<log mode="append">
<!--
<setting1/>
<setting2/>
-->
</log>
</configuration>
目录结构:winSW.exe 与配置文件同名,同目录