블로그에 게시하는 위 글은 전체적인 내용 정리가 아닌
책을 읽으면서 새로 알게된 내용이나 제가 중요하다고 생각하는 내용을 정리한 글입니다.
작가님의 블로그에 IntelliJ에 대한 더욱 많은 정보들이 담겨있다.
intelliJ를 설치하고 프로젝트를 생성하는 방법에 대해 단계별로 설명이 되어있었다.
Gradle 프로젝트를 만들면 자동으로 생성되는 아래 build.gradle에서 내용을 추가하여 스프링 부트 프로젝트로 변경하는 방법에 대해 설명이 되어있다.
plugins {
id 'java'
}
group 'springboot_test'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
ext를 사용하게 되면 전역변수를 사용할 수 있다.
buildscript {
ext{
springBootVersion = '2.1.7.RELEASE'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
intelliJ에서 깃허브에 로그인을 하고 프로젝트를 생성하는 방법에 대해 설명이 되어있다.