(springboot 实战有介绍,这里记录说明)
Homebrew安装Springboot,需要引入第三方的资源库pivotal ,
没有引入时,brew info springboot是找不到的
➜ ~ brew info springboot
Error: No available formula with the name "springboot"
1、终端执行: brew tap pivotal/tap
➜ ~ brew tap pivotal/tap
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16/rbconfig.rb:213: warning: Insecure world writable dir /Users/yang/infoship/maven/bin in PATH, mode 040777
==> Tapping pivotal/tap
Cloning into '/usr/local/Homebrew/Library/Taps/pivotal/homebrew-tap'...
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 15 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
Tapped 8 formulae (49 files, 45.2KB)
2、brew info springboot 查看资源库中的springboot信息(可以跳过)
➜ ~ brew info springboot
pivotal/tap/springboot: stable 1.5.3.RELEASE, HEAD
http://projects.spring.io/spring-boot/
Not installed
From: https://github.com/pivotal/homebrew-tap/blob/master/springboot.rb
3、安装springboot,执行命令:brew install springboot
➜ ~ brew install springboot
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16/rbconfig.rb:213: warning: Insecure world writable dir /Users/yang/infoship/maven/bin in PATH, mode 040777
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
make
==> Installing springboot from pivotal/tap
==> Downloading https://repo.spring.io/release/org/springframework/boot/spring-b
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
? /usr/local/Cellar/springboot/1.5.3.RELEASE: 7 files, 8.9MB, built in 12 seconds
查看版本信息,执行:spring --version
➜ ~ spring --version
Spring CLI v1.5.3.RELEASE
接下来就可以继续学习了