新建spring.sh文件
vi spring.sh
添加启动操作
#!/bin/bash
java -jar /home/zhan5/projects/spring/spring-0.0.1-SNAPSHOT.jar
添加可执行的权限
chmod +x /home/start/spring.sh
chmod +x /etc/rc.d/rc.local
打开rc.local
vi /etc/rc.d/rc.local
添加执行
/home/start/spring.sh