기본 콘텐츠로 건너뛰기

10월, 2021의 게시물 표시

Gradle 사용 기초

Gradle 사용 기초 Gradle을 자주 사용하지 않는 상황에서 필요할 때 참조하기 위하여 이 문서를 작성합니다. Gradle 설치 다운로드 사이트: https://gradle.org/releases/ 이 문서 작성에 사용한 Gradle 버전: 7.2 프로젝트 생성 및 빌드 프로젝트 폴더 생성 >mkdir demo >cd demo 프로젝트 생성 >gradle init Starting a Gradle Daemon (subsequent builds will be faster) Select type of project to generate: 1: basic 2: application 3: library 4: Gradle plugin Enter selection (default: basic) [1..4] 2 Select implementation language: 1: C++ 2: Groovy 3: Java 4: Kotlin 5: Scala 6: Swift Enter selection (default: Java) [1..6] 3 Split functionality across multiple subprojects?: 1: no - only one application project 2: yes - application and library projects Enter selection (default: no - only one application project) [1..2] 1 Select build script DSL: 1: Groovy 2: Kotlin Enter selection (default: Groovy) [1..2] 1 Select test framework: 1: JUnit 4 2: TestNG 3: Spock 4: JUnit Jupiter Enter selection (default: JUnit Ju...

Guava BloomFilter 사용 기초

Guava BloomFilter 사용 기초 사용 환경 Windows 10 Java 1.8 Gradle 7.2 Spring Boot 2.5.4 Oracle DB 19 MyBatis 2.2.0 프로젝트 생성하기 프로젝트 생성 브라우져에서 spring initializr 를 방문하여 아래와 같이 입력하고 GENERATE 버튼을 클릭합니다. Project: Gradle Project Language: Java Spring Boot: 2.5.5 Project Meta: Group: trvoid.bloomfilter Artifact: bloom-filter Name: bloom-filter Package name: trvoid.bloomfilter Packaging: Jar Java: 8 Dependencies: JDBC API MyBatis Framework Oracle Driver 생성된 프로젝트 파일을 다운로드하여 압축을 풉니다. 프로젝트 폴더 구조는 아래와 같습니다. bloom-filter |-src |-main |-java |-trvoid.bloomfilter |-BloomFilterApplication.java |-resources |-application.properties |-test |-java |-trvoid.bloomfilter |-BloomFilterApplicationTests.java |-build.gradle build.gradle 파일에서 의존성 항목을 확인할 수 있습니다. dependencies { implementation 'org.springframework.boot:spring-boot-starter-jdbc' implementation 'org.mybatis.sprin...