Spring

인프런 강의(김영한) - 섹션1 프로젝트 생성

reasontaek 2021. 8. 12. 21:28

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할 때 실행이 더 빠름)