Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:computer:spring_tools [2021/11/18 10:50] – alex | public:computer:spring_tools [2022/05/26 11:59] (current) – alex | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Spring Tools |4 ====== | ====== Spring Tools |4 ====== | ||
> [[https:// | > [[https:// | ||
+ | |||
+ | ===== Prerequisite ===== | ||
+ | * Install Java JDK | ||
+ | * Set Environments; | ||
+ | |||
+ | <cli> | ||
+ | // 설치 후 shell에서 자바 버전 확인 | ||
+ | $ java -version | ||
+ | |||
+ | // change directory @mac | ||
+ | $ cd / | ||
+ | |||
+ | // JAVA_HOME path 설정 | ||
+ | // Shell이 bash인 경우 path 설정 | ||
+ | $ vi ~/ | ||
+ | |||
+ | // 환경 변수 설정 후 jdk 버전 확인 | ||
+ | $ java -version | ||
+ | </ | ||
+ | |||
+ | <sxh plain title: .bash_profile> | ||
+ | export JAVA_HOME=/ | ||
+ | </ | ||
Line 45: | Line 68: | ||
==== Run ==== | ==== Run ==== | ||
- | | + | |
* select a package & run | * select a package & run | ||
==== Lombok ==== | ==== Lombok ==== | ||
Line 52: | Line 75: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ==== command line argument ==== | ||
+ | * 실행 시 워크스페이스 지정 <sxh bash> | ||
+ | C: | ||
+ | </ | ||
===== for Visual Studio Code ===== | ===== for Visual Studio Code ===== | ||
+ | ==== Install Extensions ==== | ||
+ | * Extension Pack for Java by Microsoft | ||
+ | * < | ||
+ | |||
+ | |||
+ | ==== Create Project ==== | ||
+ | * Command Palette (⌘ + ⇧ + P, Ctrl+Shift+P); | ||
+ | - Choose One(Add Starters/ | ||
+ | - Specify Spring Boot version; | ||
+ | - Specify prject language; Java / Kotlin / Groovy | ||
+ | - Input Group Id; com.example | ||
+ | - Input Artifact Id; demo | ||
+ | - Specify packaging type; Jar / War | ||
+ | - Specify Java version; 11/ 17 / 8 | ||
+ | - Search for dependencies; | ||
+ | * **Spring Boot DevTools** (*) | ||
+ | * **Spring Web** (*) | ||
+ | - Choose Directory to make a project | ||
+ | |||
+ | * [[http:// |