Spring CLI

手动安装
下载地址:https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.0.5.RELEASE/spring-boot-cli-2.0.5.RELEASE-bin.zip

设置%SPRING_HOME%/bin到环境变量

编写controller

@RestController
class ThisWillActuallyRun {
@RequestMapping("/")
String home() {
"Hello World!"
}
}

cmd启动:spring run app.groovy

访问:localhost:8080

你可能感兴趣的:(Spring CLI)