-
Java 버전 변경
- 기존 1.8 => 변경 11 Link
-
Spring Boot 버전 변경
- 기존 2.1.6 => 변경 2.3.4
-
Lombok 사용법
-
DI 부분 Autowired -> 생성자 주입 패턴으로 변경
- application.properties 설정에서 => application.yaml 설정으로 변경 합니다.
- application package가 com.example.study => com.fastcampus.java로 변경 합니다.
- JDK 설치는 기존과 동일합니다. 버전만 11 버전으로 설치 하시면 됩니다. Link
- 프로젝트 생성
- Spring Initializr 에서 Project SDK 를 JAVA 11버전을 선택 합니다.

- 상세 설정에서 package name, type, language, packaging, java version 을 설정 합니다.

- Dependencies 에서 Web -> Spring Web 를 선택

- Spring Initializr 에서 Project SDK 를 JAVA 11버전을 선택 합니다.
[before 이전 버전]
plugins {
id 'org.springframework.boot' version '2.1.6.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
[after Renewal 버전]
plugins {
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.fastcampus'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}