方法一:使用WinSW工具
工具地址:https://link.jianshu.com/?t=https://github.com/kohsuke/winsw/releases
参考:https://blog.csdn.net/wgd930701/article/details/123640481
方法二:借助命令添加服务
1 创建bat文件
D:\tool\ddns\myddns.bat:
2 添加到服务
Original: https://www.cnblogs.com/Twobox/p/16345605.html
Author: Wei_Xiong
Title: jar注册为win服务
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/566209/
转载文章受原作者版权保护。转载请注明原作者出处!