wget http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.5.3.RELEASE/spring-boot-cli-1.5.3.RELEASE-bin.zip
unzip spring-boot-cli-1.5.3.RELEASE-bin.zip
rm -rf spring-boot-cli-1.5.3.RELEASE-bin.zip
sudo vim /etc/profile
export SPRING_HOME=/home/diego/bin/spring-1.5.3.RELEASE/
export PATH=$SPRING_HOME/bin:$PATH
source /etc/profile
touch app.groovy
@RestController
class WebApplication {
@RequestMapping("/")
String home() {
"Hello World!"
}
}
spring run app.groovy
curl http://localhost:8080/