Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active May 15, 2018 23:41
Show Gist options
  • Save diegopacheco/7623d6da015f588e4f11bee17d483569 to your computer and use it in GitHub Desktop.
Save diegopacheco/7623d6da015f588e4f11bee17d483569 to your computer and use it in GitHub Desktop.
How to install Spring Boot CLI 1.5.3 on Linux?
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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment