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:39] – 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=/ | ||
| + | </ | ||
| ===== for Eclipse ===== | ===== for Eclipse ===== | ||
| + | |||
| + | ==== Settings ==== | ||
| - Download jar file | - Download jar file | ||
| - Unpack jar file | - Unpack jar file | ||
| Line 31: | Line 56: | ||
| </ | </ | ||
| + | ==== Open Project ==== | ||
| + | - Open Workspace | ||
| + | - Import Project(Package Explorer) | ||
| + | - Select Project Type(Gradle | Maven) | ||
| + | - Browse Project Root Directory | ||
| + | - Check Imported Packages in Package Explorer | ||
| + | - STS4; [Window] -> [Show View] -> [Project Explorer] | ||
| + | - Change Text File Encoding; [Preferences] -> [General > Workspace] -> | ||
| + | * Text file encoding; Other: **UTF-8** | ||
| + | * New text file line delimiter; Oterh: **Unix** | ||
| + | |||
| + | ==== Run ==== | ||
| + | * [Boot Dashboard] | ||
| + | * select a package & run | ||
| ==== Lombok ==== | ==== Lombok ==== | ||
| > [[https:// | > [[https:// | ||
| Line 36: | 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:// | ||