Programming/Web-Spring
[intellij] spring 프로젝트 생성 및 시작
아이바
2022. 5. 23. 11:55
사용언어 java + spring framework
툴 : intellij
db : h2
빌드 : gradle
1. 프로그램 설치 (실습 용도로 사용)
java : jdk 11 version
intelliJ : community version 설치
2. 프로젝트 생성
3. build.gradle 설정
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group 'com.web.todo'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// JPA
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// rest
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
// in 메모리 db
runtimeOnly 'com.h2database:h2'
// lombok 추가
implementation 'org.projectlombok:lombok'
}
test {
useJUnitPlatform()
}
728x90