springboot mac 命令行安装

一 基本环境:

1 java8

2 maven 3.x

二 安装步骤

$ brew tap pivotal/tap     //spring cl

$ brew install springboot

安装的路径在/usr/local/bin

2 test

文本编辑器插入

@RestControllerclassThisWillActuallyRun

 {

@RequestMapping("/")

String home()

 {"Hello World!"}

}

保存成app.groovy

运行cmd:spring run app.groovy

你可能感兴趣的:(springboot mac 命令行安装)