위 책을 따라 스프링 부트와 AWS에 대해 배워보려고 한다.
그래들 프로젝트를 스프링 부트 프로젝트로 변경하기
학습을 위해 스프링 이니셜라이저를 통해 진행하지 않는다.
build.gradle
plugins { // 이 3개는 자바와 스프링부트를 사용하기 위한 필수 플러그인
id 'org.springframework.boot' version '2.4.1' // RELEASE 삭제
// 스프링 부트의 의존성들을 관리해주는 플러그인
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group 'com.ewok.study'
version '1.0.4-SNAPSHOT-'+new Date().format("yyyyMMddHHmmss")
sourceCompatibility = 1.8
repositories { // 각종 의존성(라이브러리)들을 어떤 원격 저장소에서 받을지
mavenCentral()
// jcenter() 현재 지원중단
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
testImplementation('org.springframework.boot:spring-boot-starter-test')
}
test {
useJUnitPlatform()
}
책 출시 이후로 버전들이 계속 업데이트 되므로
https://jojoldu.tistory.com/539
(2020.12.16) 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 최신 코드로 변경하기
작년 11월 말에 스프링 부트와 AWS로 혼자 구현하는 웹 서비스를 출판 하였습니다. Spring Boot가 2.1 -> 2.4로, IntelliJ IDEA가 2019 -> 2020으로 오면서 너무 많은 변화가 있다보니, 집필할 때와 비교해 실습
jojoldu.tistory.com
https://github.com/jojoldu/freelec-springboot2-webservice
GitHub - jojoldu/freelec-springboot2-webservice
Contribute to jojoldu/freelec-springboot2-webservice development by creating an account on GitHub.
github.com
이곳을 참고하자
'SpringBoot > AWS' 카테고리의 다른 글
무중단 배포를 진행하며 겪은 에러 (0) | 2023.03.19 |
---|---|
무중단 배포 (0) | 2023.03.19 |
CodeDeploy 로그 확인 (0) | 2023.03.18 |
Github Actions 배포 자동화 (0) | 2023.03.18 |
스프링 부트에서 작성하는 테스트 코드 (0) | 2023.03.14 |