스프링 공식 사이트
Spring | Home
Cloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.
spring.io
상단 메뉴바 - Project - Development Tools - Spring Tools 4
Eclipse에서 본인의 OS 환경에 맞는 오픈 소스 (.jar파일) 다운로드
다운로드 받은 jar파일을 STS를 설치할 위치로 이동시키고 압출을 풀어주면 된다.
윈도우키+R - cmd 실행
cd C:\javawork\program
> jar파일이 있는 위치로 이동
java -jar spring-tool-suite-4-4.19.1.RELEASE-e4.28.0-win32.win32.x86_64.self-extracting.jar
>압축 해제 할 파일 java 명령어 입력
생성된 폴더 안의 SpringToolSuite4.exe 프로그램을 실행하면 STS가 실행된다.
테마는 직접 설정할 수 있지만 간단하게 Marketplace에서 플러그인을 다운로드 받아 설정한다.
NEXT
선호하는 테마 선택 후 NEXT
재실행하고 나면 에디터 테마 선택하는 창이 나온다.
선택후 Continue
이후 Preferences에서 몇가지 설정
- General - Appearance - Colors and Fonts - Basic - Text Font - font 설정
-General - Content Types - Text - UTF-8 update
- General - Editors - Text Editors - Show whitespace characters (공백, Tabs 표시해주는 설정)
- Version Control - Git - Cloning repositories - Default repository folder
롬복 다운로드 주소
https://projectlombok.org/download
Download
projectlombok.org
lombok 최신 버전 다운로드
sts-4.19.1.RELEASE (STS프로그램 설치된 디렉토리)에 lombok.jar 파일 이동
더블클릭하여 실행
Specify location
- STS.exe 또는 STS.ini 선택 > Install/Update 클릭
- install 완료 후 Quit Installer
Spring Project 생성하기
Create new Spring Starter Project
보통 Name은 Artifact와 일치
Package = Group.Artifact
스프링 부트 버전 및 의존성 라이브러리들 설정 - Finish
version을 선택하면 그 버전에 맞는 dependencies가 자동으로 import된다.
생성된 프로젝트의 Dependencies는
Project and External Dependencies 와 build.gradle에서 확인할 수 있다.
'Gourp:Artifact:Version'으로 표시
settings.gradle의 rootProject.name은 프로젝트 이름과 동일해야한다.
resources - application.properties
프로젝트의 메인 설정 파일로 전역 설정이 필요할 때 사용
'Java > Spring Boot' 카테고리의 다른 글
Spring Boot Controller Mapping + View Resolver (0) | 2023.09.12 |
---|---|
Spring Boot Exception Handler (0) | 2023.09.12 |
Spring Boot (0) | 2023.09.12 |
Spring Boot에서 JSP 사용하기 (0) | 2023.09.12 |
Spring Boot Application Overview (1) (0) | 2023.09.11 |