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
public:computer:spring_tools [2021/11/18 10:39] alexpublic:computer:spring_tools [2022/05/26 11:59] (current) 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 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://projectlombok.org/download|Project Lombok]] > [[https://projectlombok.org/download|Project Lombok]]
Line 36: Line 75:
   * [[https://the-dev.tistory.com/27|[Lombok] 롬복 설치 및 STS(eclipse) 연동하기]]   * [[https://the-dev.tistory.com/27|[Lombok] 롬복 설치 및 STS(eclipse) 연동하기]]
  
 +
 +==== command line argument ====
 +  * 실행 시 워크스페이스 지정 <sxh bash>
 +C:\ustra\tools\Java\sts-4.7.1.RELEASE\SpringToolSuite4.exe -data C:\Framework-Guide\
 +</sxh>
  
 ===== 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.1637199561.txt.gz
  • Last modified: 2021/11/18 10:39
  • by alex