Skip to content
Open
Show file tree
Hide file tree
Changes from 176 commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
494c705
settings
sdardew Apr 9, 2022
986465e
feat: command 입력
sdardew Apr 9, 2022
0b7d583
feat: Command-line Application을 만들어 본다
sdardew Apr 10, 2022
70cdbbe
docs: 로그 파일은 반영하지 않음
sdardew Apr 10, 2022
5642aa3
feat: 적절한 로그를 기록하고 logback 설정을해서 에러는 파일로 기록된다.
sdardew Apr 10, 2022
c6c3da9
feat: 실행 가능한 jar 파일을 생성한다
sdardew Apr 10, 2022
9219f3f
init: 프로젝트 생성
gkdud583 Apr 16, 2022
0aeb445
test: 테스트 시나리오 작성
gkdud583 Apr 17, 2022
2387dce
Merge pull request #239 from gkdud583/main
gkdud583 Apr 17, 2022
6a74f59
Revert "Update README.md"
learn-programmers Apr 17, 2022
59f791f
Revert "[2기-C] 정하영 SpringBoot Part1 Weekly Mission 제출입니다. "
devcourse-ray Apr 17, 2022
716f99b
Merge pull request #243 from prgrms-be-devcourse/revert-239-main
devcourse-ray Apr 17, 2022
633143d
refactor: run method로 실행 코드 분리
sdardew Apr 17, 2022
e5fce9d
refactor: 주석 제거
sdardew Apr 19, 2022
4c344b7
refactor: 매직 넘버
sdardew Apr 19, 2022
322f5e2
refactor: 필요없는 줄 제거
sdardew Apr 19, 2022
9c39958
뷰와 로직 분리
sdardew Apr 19, 2022
ed20638
자바 버전 변경
sdardew Apr 19, 2022
c1cca91
trim() 추가
sdardew Apr 19, 2022
ba39d00
인터페이스에서 추상 클래스로 변경
sdardew Apr 19, 2022
ed01ef6
Merge pull request #218 from sdardew/week1
ksy90101 Apr 21, 2022
64b63ab
Revert "[2기-C] 정다현 SpringBoot Part1 Weekly Mission 제출합니다."
learn-programmers Apr 22, 2022
4d3b99a
Merge pull request #295 from prgrms-be-devcourse/revert-218-week1
learn-programmers Apr 22, 2022
23ce85c
Update README.md
gw0215 Nov 9, 2022
b7fde22
initial commit
gw0215 Nov 9, 2022
da54ad3
feat : Voucher 추상 클래스 추가
gw0215 Nov 9, 2022
43bba4c
feat : fixedvoucher, percentvoucher 추가
gw0215 Nov 9, 2022
f989adc
feat : voucherType, message, nosuchvoucherexception, voucherfunction 추가
gw0215 Nov 9, 2022
b5438a6
feat : 입출력 기능, 명령어, controller 구현
gw0215 Nov 9, 2022
94da86b
feat : Voucher service 기능 구현
gw0215 Nov 9, 2022
2ab0c78
feat : InMemoryRepository 기능 구현
gw0215 Nov 9, 2022
6599dd9
feat : FileVoucherRepository 기능 추가
gw0215 Nov 9, 2022
310b00b
feat : Customer 도메인 추가
gw0215 Nov 9, 2022
778242c
feat : Customer Repository 기능 추가
gw0215 Nov 9, 2022
c20a1c4
feat : Customer Service 기능 추가
gw0215 Nov 9, 2022
df50fc3
feat : black list 기능 controller에 추가
gw0215 Nov 9, 2022
7c5710e
feat : main에서 controller 실행
gw0215 Nov 9, 2022
2368bfb
feat : 파일읽기 유틸 클래스 추가
gw0215 Nov 11, 2022
f0e1eb4
feat : 파우처 팩토리 추가, enum 책임 분리
gw0215 Nov 11, 2022
ef67fff
refactor : 입출력 인테페이스 통합
gw0215 Nov 11, 2022
f61602e
feat : file exception추가
gw0215 Nov 11, 2022
cf30fa8
feat : error message 추가
gw0215 Nov 11, 2022
1239160
refactor : 패키지 수정
gw0215 Nov 11, 2022
0d8ecf7
feat : properties 관리 클래스 추가
gw0215 Nov 11, 2022
a16e66b
test : 테스트 추가
gw0215 Nov 11, 2022
209cb0f
refactor : 팩토리로 바우처 생성
gw0215 Nov 11, 2022
e52f637
refactor : 애너테이션 수정
gw0215 Nov 11, 2022
b368a87
refactor : 에러메시지로 변경
gw0215 Nov 11, 2022
79efd1e
refactor : logback 경로 수정
gw0215 Nov 11, 2022
12c0240
refactor : 변수 이름 변경
gw0215 Nov 11, 2022
379a087
refactor : CommandLineRunner 를 구현하여 앱 실행
gw0215 Nov 11, 2022
eee6ddc
chore : 패키지 수정
gw0215 Nov 11, 2022
eeb5f5a
chore : 사용하지 않는 파일 삭제
gw0215 Nov 11, 2022
3434a81
refactor : CommandLineApp 변수명 수정
gw0215 Nov 13, 2022
6e47628
refactor : filePath 필드 삭제
gw0215 Nov 13, 2022
2054c0b
refactor : message 수정
gw0215 Nov 14, 2022
f47d2f3
chore : 안쓰는 라이브러리 삭제
gw0215 Nov 15, 2022
75250ab
refactor : 메서드명 변경
gw0215 Nov 15, 2022
127e0fb
refactor : Objects로 동등성 비교
gw0215 Nov 17, 2022
3e024cf
refactor : 생성자에서 Map 초기화
gw0215 Nov 17, 2022
3309596
refactor : 생성자에서 Map 초기화
gw0215 Nov 17, 2022
2951812
Merge pull request #556 from geonwoo0215/geonwoo0215/w1
gw0215 Nov 17, 2022
cb460b9
Revert "[3기-C] 이건우 SpringBoot Part1 Weekly Mission 제출합니다."
gw0215 Nov 17, 2022
79e7e84
Merge pull request #580 from prgrms-be-devcourse/revert-556-geonwoo02…
learn-programmers Nov 18, 2022
5d9e40a
chore : springboot 초기 세팅, .gitignore 설정
bjo6300 Jun 20, 2023
aabfc9e
feat : 콘솔 메뉴 입출력 구현
bjo6300 Jun 20, 2023
a906485
refactor : AppConfig를 통한 객체 생성
bjo6300 Jun 20, 2023
6116ee1
feat : voucherController에서 메뉴 틀 구현
bjo6300 Jun 22, 2023
06d747f
feat : Voucher 구현
bjo6300 Jun 22, 2023
75962e2
setUp project
Dev-Yesung Jun 22, 2023
154e558
feat(Voucher): Voucher인터페이스와 구상체 구현
Dev-Yesung Jun 22, 2023
e347ae5
feat(Voucher): VoucherRepository 구현
Dev-Yesung Jun 22, 2023
03769fa
feat(Voucher): VoucherService 구현
Dev-Yesung Jun 22, 2023
969b329
feat(io): 콘솔 입력과 출력에 관한 클래스 구현
Dev-Yesung Jun 22, 2023
b145626
feat: VoucherUtils 클래스 구현
Dev-Yesung Jun 22, 2023
4ae6515
feat(Processor): Processor에 바우처 생성과 조회에 관한 메소드를 구현했습니다.
Dev-Yesung Jun 22, 2023
f859b50
docs(docs): README.md 추가
Dev-Yesung Jun 22, 2023
b82d102
fix: SpringbootTest 삭제
Dev-Yesung Jun 22, 2023
f2cc890
refactor(Processor): try-catch문을 executeServiceLoop메서드로 추출
Dev-Yesung Jun 23, 2023
c0a8487
feat : voucher create 기능 구현
bjo6300 Jun 23, 2023
98e11b3
refactor : 매직 넘버 제거
bjo6300 Jun 23, 2023
bcf3c7e
feat : memory에 저장하는 기능 구현
bjo6300 Jun 23, 2023
544ab5f
feat(Voucher): 바우처 생성시 유효한 값이 아니면 예외 발생
Dev-Yesung Jun 23, 2023
0f98647
refactor: 메시지 출력 양식 및 반환타입 변경
Dev-Yesung Jun 23, 2023
7f52cce
feat : logback을 통해 에러를 파일로 저장하는 기능
bjo6300 Jun 24, 2023
2511146
fix : log 파일에 에러 기록되지 않는 오류 해결
bjo6300 Jun 24, 2023
8fb7285
refactor: 메시지, 값 리팩토링 및 로거 도입
Dev-Yesung Jun 24, 2023
8c864fa
feat: VoucherRequest/Response Dto 생성
Dev-Yesung Jun 24, 2023
43173eb
refactor: Dto를 통한 데이터 송수신으로 변경
Dev-Yesung Jun 24, 2023
e635ac1
feat: getter를 제거하고 구체적인 비즈니스 로직인 discount 도입
Dev-Yesung Jun 25, 2023
a1a4a2f
docs: README.md 업데이트
Dev-Yesung Jun 25, 2023
d15b96a
refactor: 메뉴선택을 문자열 방식에서 숫자 입력 방식으로 변경
Dev-Yesung Jun 25, 2023
9f46e97
refactor: 인터페이스 Voucher를 추상클래스 Voucher로 변경
Dev-Yesung Jun 26, 2023
19ff716
refactor: Voucher클래스의 설계 변경에 따른 동작방식 변경
Dev-Yesung Jun 26, 2023
805a7ed
refactor: ConsoleIO 출력방식 리팩토링
Dev-Yesung Jun 26, 2023
92fff42
refactor: VoucherValue클래스 삭제, 예외 메시지 위치변경, 출력메시지 리팩토링
Dev-Yesung Jun 26, 2023
420dca1
refactor: 매직넘버 상수치환 및 FixedAmount 생성 예외추가
Dev-Yesung Jun 26, 2023
4696d6b
refactor: 예외출력메시지 포맷팅 추가, 매직넘버 치환
Dev-Yesung Jun 26, 2023
0e79283
fix : 불필요한 @Repository 삭제
bjo6300 Jun 26, 2023
65af630
refactor: VoucherRequestDto 재생성, Processor와 Service 작동방식 변경
Dev-Yesung Jun 26, 2023
81a7963
fix : @Component로 변경
bjo6300 Jun 26, 2023
dab8d72
refactor : voucherType 검사하는 함수 분리
bjo6300 Jun 26, 2023
1993e22
feat: FileVoucherRepository 구현
Dev-Yesung Jun 27, 2023
91ad8ee
feat: findByVoucherId 구현
Dev-Yesung Jun 27, 2023
0b0ab24
feat: MemoryVoucherRepository에 findByVoucherId 구현
Dev-Yesung Jun 27, 2023
585fda8
feat: 파일 바우처와 블랙리스트의 입출력을 위한 구현
Dev-Yesung Jun 27, 2023
ba8d7bf
feat: 파일 바우처 도메인 기능 구현
Dev-Yesung Jun 27, 2023
5839151
feat: Customer 도메인 모두 구현
Dev-Yesung Jun 27, 2023
100d060
refactor: yml 파일을 이용필 프로필 환경에 따른 의존주입 설정 추가
Dev-Yesung Jun 27, 2023
a7b710d
chore: 사용하지 않는 파일 삭제
Dev-Yesung Jun 27, 2023
47b6062
docs: README.md 업데이트
Dev-Yesung Jun 27, 2023
018ab64
fix : log level 수정 및 log 상수화
bjo6300 Jun 28, 2023
e9d4836
fix : PercentDiscount 계산 수정
bjo6300 Jun 28, 2023
f96911f
refactor : Voucher를 추상클래스로 변경
bjo6300 Jun 28, 2023
da48635
refactor : VoucherController를 Bean에서 꺼내쓰기
bjo6300 Jun 28, 2023
70c6d6e
refactor : history 기능 Output에 구현
bjo6300 Jun 28, 2023
216b71d
refactor : while문 파라미터 변수화
bjo6300 Jun 28, 2023
bb9b4e5
refactor : run 메소드 예외처리
bjo6300 Jun 28, 2023
28a9a15
feat : amount 검증 기능 추가
bjo6300 Jun 28, 2023
00997a6
Merge pull request #658 from Dev-Yesung/Dev-Yesung/week1
Dev-Yesung Jun 29, 2023
12cdc65
Revert "[4기 - 고예성] SpringBoot Part1 Weekly Mission PR 제출합니다."
SpencerCP Jun 29, 2023
034a562
refactor : 명령어 검증을 유연하게 만들기
bjo6300 Jun 29, 2023
23b85cc
Merge pull request #722 from prgrms-be-devcourse/revert-658-Dev-Yesun…
learn-programmers Jun 29, 2023
2296e96
feat : discountPercent, discountPrice 검증 기능
bjo6300 Jun 30, 2023
2c6110b
refactor : controller의 책임을 service로 이동
bjo6300 Jun 30, 2023
e6b4abf
refactor : Input, Output 인터페이스화 및 Console로 통합
bjo6300 Jun 30, 2023
7df2e84
refactor : VoucherController에 입출력 책임 분배
bjo6300 Jul 3, 2023
cfbd054
Update README.md
bjo6300 Jul 3, 2023
a81b2c6
Merge branch 'prgrms-be-devcourse:main' into w2
bjo6300 Jul 6, 2023
fa374a2
feat : DB 연동
bjo6300 Jul 6, 2023
955655d
feat : customer model 생성
bjo6300 Jul 6, 2023
6041a5e
feat : customer repository 구현
bjo6300 Jul 6, 2023
ced474b
feat : voucher 테이블 정의
bjo6300 Jul 6, 2023
6ded727
refactor : VoucherCreateRequest 경로 변경
bjo6300 Jul 6, 2023
2ed19f1
feat : VoucherMemoryRepository 기능 추가
bjo6300 Jul 6, 2023
aa25233
fix : customerRepository 수정
bjo6300 Jul 7, 2023
5b07444
feat : voucher에 getDiscount 추가
bjo6300 Jul 7, 2023
87cd231
feat : voucherRepository 구현
bjo6300 Jul 7, 2023
6cc49b7
fix : voucherRepository update 기능 삭제
bjo6300 Jul 7, 2023
c019d3e
feat : voucherService 구현
bjo6300 Jul 7, 2023
cc2eaef
refactor : voucherController, voucherService 책임 분배
bjo6300 Jul 7, 2023
a365496
fix : customer, voucher PK 범위 수정
bjo6300 Jul 7, 2023
138a912
fix : voucherType 인식 오류 해결
bjo6300 Jul 7, 2023
440d081
refactor : voucher UUID 생성 방식 변경
bjo6300 Jul 7, 2023
efe30a2
fix : printHistory 기능 변경
bjo6300 Jul 7, 2023
4cd2956
feat : delete 기능 console 구현
bjo6300 Jul 8, 2023
9efaf1d
fix : voucher, customer PK type 변경
bjo6300 Jul 8, 2023
1bde205
fix : 미사용 코드 삭제 & 매직넘버 제거
bjo6300 Jul 8, 2023
69fceed
fix : 불필요한 어노테이션 제거
bjo6300 Jul 9, 2023
295f8aa
refactor : DB 설정 유출 방지
bjo6300 Jul 9, 2023
63a96a0
fix : voucherRepository 인터페이스 주입
bjo6300 Jul 10, 2023
6bfc428
feat : voucher deleteAll 기능 삭제
bjo6300 Jul 10, 2023
5efe54f
fix : LOG static으로 변경
bjo6300 Jul 10, 2023
be34c08
fix : 고정할인 검증 로직 변경
bjo6300 Jul 10, 2023
a6eafd5
refactor : voucher 생성 시 부가적 로그 추가
bjo6300 Jul 10, 2023
6398d4b
refactor : 명확한 로그 작성
bjo6300 Jul 10, 2023
8493720
refactor : static 변수 위치 수정
bjo6300 Jul 10, 2023
d33b75e
fix : 예외 메세지 추가
bjo6300 Jul 10, 2023
fe3a751
refactor : 알파벳 순서로 어노테이션 정렬
bjo6300 Jul 10, 2023
26859b9
fix : console에 로그 나타내기
bjo6300 Jul 13, 2023
c01014d
fix : 도메인 경로 변경
bjo6300 Jul 13, 2023
ea03687
fix : customer update 기능 수정
bjo6300 Jul 13, 2023
803d09e
fix : customer 변수명 변경
bjo6300 Jul 13, 2023
bcfabb0
refactor : CommandController 이름 수정 & model 경로 수정
bjo6300 Jul 23, 2023
56082f9
refactor : commandcontroller 이름 수정
bjo6300 Jul 23, 2023
436f361
refactor : 기록 조회 기능 console, voucherService 역할 분리
bjo6300 Jul 23, 2023
f09caa5
refactor : Command Enum 최적화
bjo6300 Jul 24, 2023
37d4de7
feat : Customer 이름, 이메일 검증
bjo6300 Jul 24, 2023
3f9a46f
test : voucherService 테스트 코드 작성
bjo6300 Jul 26, 2023
7abc4fb
chore : build.gradle에 web, thymeleaf 추가
bjo6300 Jul 27, 2023
f67bcd7
chore : swagger 적용
bjo6300 Jul 28, 2023
f386c9b
fix : createRequest long으로 변경
bjo6300 Jul 28, 2023
d82dacb
feat : thymeleaf CRUD 구현
bjo6300 Jul 30, 2023
ae519e9
feat : Voucher Rest API CRUD 구현
bjo6300 Jul 30, 2023
678df5b
refactor : discountAmount type에 맞게 수정
bjo6300 Jul 30, 2023
4d22e9f
refactor : thymeleaf UI 수정
bjo6300 Jul 30, 2023
094be92
refactor : @PostMapping path 제거, 불필요한 개행 제거
bjo6300 Jul 31, 2023
aab6c9f
refactor : voucherJdbcRepository 생성자 주입 통일
bjo6300 Jul 31, 2023
c43e534
refactor : voucherService save 통합
bjo6300 Jul 31, 2023
43292e2
refactor : 불필요한 어노테이션 제거
bjo6300 Jul 31, 2023
2e9776f
refactor : 검증 함수명 변경
bjo6300 Jul 31, 2023
12e5b0c
refactor : VoucherMemoryRepository의 findVouchersByVoucherType 로직 수정
bjo6300 Jul 31, 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
199 changes: 199 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
# Created by https://www.toptal.com/developers/gitignore/api/intellij,java,windows,gradle
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij,java,windows,gradle

.DS_Store

### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml

# Azure Toolkit for IntelliJ plugin
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
.idea/**/azureSettings.xml

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

### Gradle Patch ###
# Java heap dump
*.hprof

# End of https://www.toptal.com/developers/gitignore/api/intellij,java,windows,gradle!/.idea/
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# SpringBoot Basic Weekly Mission
스프링부트 basic 위클리미션을 코드리뷰하는 Repository입니다.

주차별 과제는 노션에서 확인하세요!
[노션에서 미션 확인가기](https://www.notion.so/backend-devcourse/Part1-3-38f57acca0dd490db11393701417943a)
리뷰 및 리팩토링 : https://github.com/prgrms-be-devcourse/springboot-basic/pull/671
Loading