build.gradle
- 추가한 라이브러리들dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
System.out.print()
사용을 지양하고 로그파일을 통해 테스트를 할 것slf4j
와 logback
가 있음spring-boot-starter-web
spring-boot-starter-tomcat
: 톰캣(웹서버)spring-webmvc
: 스프링 웹 MVCspring-boot-starter-thymeleaf
: 타임리프 템플릿 엔진(View)spring-boot-starter
(공통) : 스프링 부트 + 스프링 코어 + 로깅spring-boot
spring-core
spring-boot-starter-logging
logback
, slf4j
spring-boot-starter-test
junit
: 테스트 프레임워크mockito
: 목 라이브러리assertj
: 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리spring-test
: 스프링 통합 테스트 지원출처 - 인프런 '스프링 입문' 강의