配置文件修改
reporterService.xml
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>reporterProject</id>
<!-- Display name of the service -->
<name>reporterService-上报平台</name>
<!-- Service description -->
<description>上报平台</description>
<!-- Path to the executable, which should be started -->
<executable>D:\luguanmin\soft\java\jdk1.8.0_151\bin\java.exe</executable>
<arguments>-Dloader.path=D:\luguanmin\IdeaProjects\dmp-reporter\reporter-processor\target\dependency -jar D:\luguanmin\IdeaProjects\dmp-reporter\reporter-processor\target\reporter-processor-1.0.0.RELEASE.jar
</arguments>
<!--日志模式-->
<logmode>rotate</logmode>
</service>
启动脚本
start.bat
%1 mshta vbscript:CreateObje