Cli安装
下载地址
http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.3.0.RELEASE/spring-boot-cli-1.3.0.RELEASE-bin.zip
或
http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.3.0.RELEASE/spring-boot-cli-1.3.0.RELEASE-bin.tar.gz解压缩并配置环境变量
cd /usr/local/spring-boot-cli
sudo unzip spring-boot-cli-1.3.0.RELEASE-bin.zip
cd spring-1.3.0.RELEASE/bin
sudo ln -s /usr/local/spring-boot-cli/spring-1.3.0.RELEASE/bin/spring /usr/bin/
- 查看spring版本
spring --version
Spring CLI v1.3.0.RELEASE
- 开启spring-boot cli命令补全功能,执行如下命令
./spring-boot-cli/spring-1.3.0.RELEASE/shell-completion/bash/spring