소프트웨어/Spring Boot

[Spring Boot] Intro

개발자_이훈규 2016. 7. 4. 19:03

(Ubuntu 16.04 64bit)



1. What is 'Spring Boot'?


main home page : http://projects.spring.io/spring-boot/



2. install


default, installing java


2-1) install gradle

sudo apt-get install gradle

(ref : http://java.ihoney.pe.kr/254)


2-2) install spring-cli



2-3) install sdkman

Please open a new terminal, or run the following in the existing one:


    source "/home/hklee/.sdkman/bin/sdkman-init.sh"


error solution(unzip fail) : http://devkyu.tistory.com/611


(Ubuntu 16.04 64bit)

Download sdk - http://spring.io/tools/sts


2-3-1) install springboot

sdk install springboot


만약에 springboot가 설치가 안된다면 $HOME/.sdkman/bin/ 의 아래있는 init을 실행하자.



3. print "Hello world!"


$ vi app.groovy



$ spring run app.groovy


Open http://localhost:8080 in your favorite web browser and you should see the following output: 


Hello World!



Reference : http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/getting-started-installing-spring-boot.html