본문 바로가기

Spring

[Spring] 폴더구조

반응형

 

 

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()
}

 

 

 

반응형