Maven, Gradle: 필요한 라이브러리 설치, 빌드 라이프사이클 관리
SNAPSHOT: 개발 중인 스프링 버전
start.spring.io
- 프로젝트 생성 페이지
- 요즘에는 Maven보다 Gradle을 주로 사용
- Dependency 추가: spring-web, thymeleaf(템플릿 라이브러리)
- IntelliJ에서 build.gradle오 프로젝트 열기
@SpringBootApplication
- SpringBoot Annotation
- Tomcat을 내장
IntelliJ 설정
Preferences - Build,Excution,Deployment - Build Tools - Gradle - Build and run using / Run tests using
=> IntelliJ IDEA로 변경(프로젝트 Run할 때 실행이 더 빠름)
'Spring' 카테고리의 다른 글
인프런 강의(김영한) - 프로젝트 환경설정, 웹 개발 기초 (0) | 2021.08.13 |
---|