반응형
src-resources: 리소스파일
test: 테스트
build.gradle: 프로젝트 설정
build.gradle
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
}
group = 'hello'
version = '0.0.1-SNAPSHOT'
java {
//java 17버전 의미
sourceCompatibility = '17'
}
repositories {
//dependencies 에 있는 라이브러리를 설치하는장소?
mavenCentral()
}
dependencies {
//처음에 셋팅한 thymeleaf 라이브러리
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
//처음에 셋팅한 web 라이브러리
implementation 'org.springframework.boot:spring-boot-starter-web'
//기본적으로 들어가는 test 라이브러리
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
반응형
'Spring' 카테고리의 다른 글
[Spring] 초기 셋팅 (0) | 2024.03.01 |
---|---|
'Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 오류시 (0) | 2022.02.08 |
[Spring] 윈도우에서 spring 생성 (0) | 2022.01.31 |