public:computer:spring_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
public:computer:spring_tools [2021/11/18 10:48] – [for Eclipse] alexpublic:computer:spring_tools [2021/11/21 00:28] alex
Line 1: Line 1:
 ====== Spring Tools |4 ====== ====== Spring Tools |4 ======
 > [[https://spring.io/tools|Spring Tools |4]] > [[https://spring.io/tools|Spring Tools |4]]
 +
 +===== Prerequisite =====
 +  * Install Java JDK
 +  * Set Environments; PATH, ...
 +
 +<cli>
 +// 설치 후 shell에서 자바 버전 확인
 +$ java -version
 +
 +// change directory @mac
 +$ cd /Library/Java/JavaVirtualMachines/
 +
 +// JAVA_HOME path 설정
 +// Shell이 bash인 경우 path 설정
 +$ vi ~/.bash_profile
 +
 +// 환경 변수 설정 후 jdk 버전 확인
 +$ java -version
 +</cli>
 +
 +<sxh plain title: .bash_profile>
 +export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home
 +</sxh>
  
  
 ===== for Eclipse ===== ===== for Eclipse =====
 +
 +==== Settings ====
   - Download jar file   - Download jar file
   - Unpack jar file   - Unpack jar file
Line 31: Line 56:
 </sxh>  </sxh> 
  
-  * Open Project+==== Open Project ====
     - Open Workspace     - Open Workspace
     - Import Project(Package Explorer)     - Import Project(Package Explorer)
Line 41: Line 66:
       * Text file encoding; Other: **UTF-8**       * Text file encoding; Other: **UTF-8**
       * New text file line delimiter; Oterh: **Unix**       * New text file line delimiter; Oterh: **Unix**
-  * Run + 
-    * [Boot Dashboard]+==== Run ==== 
 +  * [Boot Dashboard]
     * select a package & run     * select a package & run
 ==== Lombok ==== ==== Lombok ====
Line 52: Line 78:
 ===== for Visual Studio Code ===== ===== for Visual Studio Code =====
  
 +==== Install Extensions ====
 +  * Extension Pack for Java by Microsoft
 +  * <del>Spring Boot Tools by Pivotal</del> Spring Boot Extension Pack by Pivotal
 +
 +
 +==== Create Project ====
 +  * Command Palette (⌘ + ⇧ + P, Ctrl+Shift+P); spring initializr 
 +    - Choose One(Add Starters/Create a Gradle Project/Create a Maven Project)
 +    - 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://honeymon.io/tech/2021/01/06/use-vs-code-for-spring-boot.html|[spring-boot] Visual Studio Code 에서 스프링 부트 프로젝트 개발하기]]
  • public/computer/spring_tools.txt
  • Last modified: 2022/05/26 11:59
  • by alex