奇葩需求:springboot项目注册为windows系统服务并设置开机自启
阅读本文大概需要 4 分钟。
作者:双主双机热备
来源:http://suo.im/5yPoPJ
1、方式一(传统版)
2、改进版
3、 改进版plus
4、 最终版
springbootDemo springbootDemo This is springbootDemo service. "JAVA_HOME" value="%JAVA_HOME%"/> java -jar "D:\springboot-service\demo-0.0.1-SNAPSHOT.jar" Automatic %BASE%\log rotate
springbootDemo springbootDemo This is springbootDemo service. "JAVA_HOME" value="%JAVA_HOME%"/> java -jar "D:\springboot-service\demo-0.0.1-SNAPSHOT.jar" Automatic %BASE%\log rotate
微信扫描二维码,关注我的公众号
朕已阅
评论