Spring Projcect/배당금 프로젝트

Chapter 01. 프로젝트 환경 설정

계란💕 2022. 9. 12. 17:40

1.0 소개

 

  • 주식(stock): 회사의 자본을 구성하는 단위
  • 기업의 자본금: 1주당 액면가 * 발행한 주 수
  • 배당금: 회사의 이익을 주주들에게 배부하는 금액
  • 기술 스택
    • Spring Boot
    • Java
    • JPA
    • H2
    • Redis
    • Jsoup
    • Docker

 

 

1.1 환경 설정

 

  • gradle 7.2 version
  • Java 11
  • "어노테이션 처리 활성화"를 체크한다.
    • 어노테이션을 추가했을 때 사용가능하도록하는 기능이다.

 

build.gradle 파일

<hide/>
plugins {
    id 'org.springframework.boot' version '2.5.6'
    id 'io.spring.dependency-management' version '1.0.13.RELEASE'
    id 'java'
    id 'war'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

configurations {
    compileOnly {
        extendsFrom annotationProcessor
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.springframework.boot:spring-boot-starter-mail'
    implementation 'org.springframework.boot:spring-boot-starter-security'
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation  group: 'com.h2database', name: 'h2', version: '1.4.200'
    implementation  group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
    implementation 'org.springframework.boot:spring-boot-starter-web'

    compileOnly 'org.projectlombok:lombok'
    runtimeOnly 'com.h2database:h2'
    annotationProcessor 'org.projectlombok:lombok'
    providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'

    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.security:spring-security-test'
}

tasks.named('test') {
    useJUnitPlatform()
}

 

'Spring Projcect > 배당금 프로젝트' 카테고리의 다른 글

Chapter 06. 완성도 높이기  (0) 2022.09.20
Chapter 05. 회원 관리  (0) 2022.09.19
Chapter 04. 서비스 구현  (0) 2022.09.14
Chapter 03. 서비스 설계  (0) 2022.09.13
Chapter 02. 스크래핑(Scraping)  (0) 2022.09.12