Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
10393c8
empty branch init
NotableDeveloper Nov 12, 2023
669ab96
Create README.md
NotableDeveloper Nov 12, 2023
3855223
init SpringBase
NotableDeveloper Nov 12, 2023
255559f
style : 디렉터리 생성
NotableDeveloper Nov 14, 2023
f5985d1
feat : Book 클래스 작성
NotableDeveloper Nov 14, 2023
7ccbd72
feat : BookRepository interface 작성
NotableDeveloper Nov 14, 2023
37d9be5
feat : MemoryBookRepository 구현
NotableDeveloper Nov 14, 2023
2088ede
feat : BookService 구현
NotableDeveloper Nov 14, 2023
450b9b4
feat : BookController 구현
NotableDeveloper Nov 14, 2023
8f4c39d
도서 검색 긴ê¸ê°긴ê기능 구현
NotableDeveloper Nov 17, 2023
3b8d39d
feat : RegisterBookDTO 추가
NotableDeveloper Nov 19, 2023
70767e8
feat : BaseResponse 구현
NotableDeveloper Nov 19, 2023
a9ee984
feat : 예외 처리
NotableDeveloper Nov 21, 2023
ba63810
feat : BorrowBookDTO 생성
NotableDeveloper Nov 22, 2023
259572a
feat : 책 대출 기능 구현
NotableDeveloper Nov 22, 2023
7cefc4b
feat : 책 반납 기능 구현
NotableDeveloper Nov 22, 2023
ed97f88
feat : 책의 이름으로 검색하는 기능 추가
NotableDeveloper Nov 22, 2023
4f1b409
feat : StatementBookRepository 구현
NotableDeveloper Nov 29, 2023
982bfb7
refact : JdbcBookRepository로 수정
NotableDeveloper Dec 1, 2023
4fcfc13
Merge pull request #13 from ACS-Spring-Study/SpringBase-sj
NotableDeveloper Dec 1, 2023
eedeacf
fix : MariaDB 연동
NotableDeveloper Dec 1, 2023
86fc5fa
feat : DB 커넥션 연결 확인 출력문 추가
sw801733 Dec 4, 2023
efe032e
feat : findAll 기능을 위한 Statement 추가
sw801733 Dec 4, 2023
f06f468
feat : save 기능을 위한 PreparedStatement 추가
sw801733 Dec 5, 2023
10c7734
feat : findByIsbn 기능을 위한 PreparedStatement 추가
sw801733 Dec 5, 2023
0ece409
feat : existsByIsbn 기능을 위한 PreparedStatement 추가
sw801733 Dec 5, 2023
c53aaf1
refact : Response 를 위한 Book 을 set 하는 메서드 추가
sw801733 Dec 6, 2023
278c4f9
fix : sout 대신 logback 을 통한 로그 사용으로 변경
sw801733 Dec 13, 2023
a0c8825
refact : finally 에서 close 수행하도록 수정
sw801733 Dec 14, 2023
0c34ffb
refact: save 메서드의 insert SQL 문 수정
sw801733 Dec 16, 2023
4fccf07
Merge remote-tracking branch 'origin/SpringBase-sw' into SpringBase-sw
sw801733 Dec 16, 2023
e2c6274
refact : setBook 의 메서드 인자 안 단순화
sw801733 Dec 16, 2023
782e1e6
refact : return null 대신 예외 발생
sw801733 Dec 16, 2023
9a186b8
refact : existsByIsbn 메서드의 SQL 문 성능 개선
sw801733 Dec 16, 2023
bd3f91a
chore : JPA 의존성 추가
sw801733 Dec 17, 2023
fa8f0ef
feat : JPA 적용을 위한 JpaBookRepository 생성 및 적용
sw801733 Dec 17, 2023
caaa8c2
chore : JPA 와 MariaDB 데이터베이스 연동을 위한 환경 변수 설정
sw801733 Dec 17, 2023
45f9a15
feat : Book 클래스에 엔티티 매핑을 위한 어노테이션 추가
sw801733 Dec 18, 2023
ef028cb
feat : JpaBookRepository isbn 검색을 위한 메서드 추가
sw801733 Dec 18, 2023
bd962c3
fix : Book 클래스의 isbn 의 이름에 맞게 메서드 명 수정
sw801733 Dec 18, 2023
807d328
feat : JpaBookRepository title 검색을 위한 메서드 추가
sw801733 Dec 18, 2023
4adc69e
fix : JPA 구현에 맞게 findAllContainsTitle 로직 변경
sw801733 Dec 18, 2023
4cdf4c9
feat : JpaBookRepository author 검색을 위한 메서드 추가
sw801733 Dec 18, 2023
77bbc75
fix : JPA 구현에 맞게 findAllContainsAuthor 로직 변경
sw801733 Dec 18, 2023
0b6c23d
fix : Book 엔티티 ID 에 Auto increment 적용
sw801733 Dec 18, 2023
a7a14fa
fix : JPA 요청을 통한 테이블 생성 옵션 none 으로 설정
sw801733 Dec 18, 2023
fe8832f
fix : ENUM 타입 저장을 위해 @Enumerated 추가
sw801733 Dec 18, 2023
e88b640
feat : JpaBookRepository category 검색을 위한 메서드 추가
sw801733 Dec 18, 2023
398462c
fix : JPA 구현에 맞게 findAllByCategory 로직 변경
sw801733 Dec 18, 2023
3ee673b
fix : 책 대여와 반납의 상태 변화에 맞게 DB 업데이트 수행
sw801733 Dec 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
.idea

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
.idea
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
14 changes: 14 additions & 0 deletions HELP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Getting Started

### Reference Documentation
For further reference, please consider the following sections:

* [Official Gradle documentation](https://docs.gradle.org)
* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.1.5/gradle-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.1.5/gradle-plugin/reference/html/#build-image)

### Additional Links
These additional references should also help you:

* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle)

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Java base repository

Java 관련하여 스터디한 내용을 올리는 Repository 입니다.
# Spring base repository
Spring 관련하여 스터디한 내용을 올리는 Repository 입니다.
53 changes: 34 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
plugins {
id 'java'
}

group = 'org.example'
version = '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

test {
useJUnitPlatform()
}
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.3'
}

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

java {
sourceCompatibility = '17'
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.mariadb.jdbc:mariadb-java-client'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
}

tasks.named('bootBuildImage') {
builder = 'paketobuildpacks/builder-jammy-base:latest'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
13 changes: 7 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Mon Oct 16 17:13:00 KST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading