스프링으로 프로젝트 진행하기 기본 설정
기본 세팅
dependecies에서 필요한 것들을 선택해준다.
이후에 프로젝트(build.gradle)에서 아래처럼 필요한 것을 직접 추가할 수도 있다.
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'junit:junit:4.13.1'
implementation 'junit:junit:4.13.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
implementation 'com.google.firebase:firebase-admin:7.1.1'
}
최근에 Intellij 버전은 Gradle을 통해서 실행하는 것이 기본이지만 이렇게 하면 실행 속도가 느리다.
맥북) preferences ->Build, Execution, Deployment-> Gradle 로 들어가서 아래 빨간 박스의 설정을 IntelliJ IDEA로 변경해준다.