Skip to content
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
397 commits
Select commit Hold shift + click to select a range
043b747
feat: implement readVoucherById, deleteVoucher, updateVoucher at Vouc…
Sehee-Lee-01 Oct 26, 2023
858da10
test: test readVoucherById, deleteVoucher, updateVoucher of VoucherSe…
Sehee-Lee-01 Oct 26, 2023
1aec87e
style: rename all repositories
Sehee-Lee-01 Oct 26, 2023
346d6aa
feat: implement WalletRepository interface
Sehee-Lee-01 Oct 26, 2023
35919e3
enhance: set unique value(voucher_id) at wallet table
Sehee-Lee-01 Oct 26, 2023
6ee0b35
Revert "enhance: set unique value(voucher_id) at wallet table"
Sehee-Lee-01 Oct 26, 2023
7853fff
enhance: set unique value(voucher_id) at ownership table
Sehee-Lee-01 Oct 26, 2023
59b97e4
feat: implement DomainMapper
Sehee-Lee-01 Oct 27, 2023
9d5e45b
feat: implement Ownership
Sehee-Lee-01 Oct 27, 2023
2aac289
enhance: apply Ownership and change return value of WalletRepository'…
Sehee-Lee-01 Oct 27, 2023
16a5495
feat: implement WalletJDBCRepository
Sehee-Lee-01 Oct 27, 2023
a2737c5
test: test WalletJDBCRepository
Sehee-Lee-01 Oct 27, 2023
d2b6a51
feat: add deleteAll at VoucherRepository and its implementation
Sehee-Lee-01 Oct 27, 2023
3006d66
enhance: mark foreign key at ownership schema
Sehee-Lee-01 Oct 27, 2023
ea76b22
test: test a findById method of VoucherJDBCRepository
Sehee-Lee-01 Oct 27, 2023
0253997
refactor: change discountValue type from BigDecimal to long
Sehee-Lee-01 Oct 27, 2023
aa90041
feat: validate if discount value in long type boundary
Sehee-Lee-01 Oct 27, 2023
85ea58b
style: fix INVALID_DISCOUNT_VALUE_MESSAGE
Sehee-Lee-01 Oct 27, 2023
a751bc9
refactor: change BigDecimal to long
Sehee-Lee-01 Oct 27, 2023
29bb09d
refactor: change parameter ownership to voucher id
Sehee-Lee-01 Oct 27, 2023
0067c99
refactor: change return value at WalletRepository
Sehee-Lee-01 Oct 27, 2023
afca5fa
style: format code at VoucherService
Sehee-Lee-01 Oct 27, 2023
db50147
test: test all case at WalletJDBCRepository
Sehee-Lee-01 Oct 27, 2023
59cc535
test: test all case at WalletJDBCRepository
Sehee-Lee-01 Oct 27, 2023
7ef4aad
test: test all case at VoucherJDBCRepository
Sehee-Lee-01 Oct 27, 2023
bbdb81b
test: test all case at CustomerJDBCRepository
Sehee-Lee-01 Oct 27, 2023
beb5a35
refactor: remove useless methods, fields
Sehee-Lee-01 Oct 27, 2023
25c78ec
refactor: split messages, queries from WalletJDBCRepository
Sehee-Lee-01 Oct 27, 2023
650dfd6
refactor: split queries from VoucherJDBCRepository
Sehee-Lee-01 Oct 27, 2023
cf85604
refactor: split queries from CustomerJDBCRepository
Sehee-Lee-01 Oct 27, 2023
b33205f
refactor: set Key constant at DomainMapper
Sehee-Lee-01 Oct 27, 2023
194925c
refactor: move constants to Constant and apply where they used
Sehee-Lee-01 Oct 27, 2023
47a677e
feat: implement WalletService
Sehee-Lee-01 Oct 27, 2023
3da74ac
test: test WalletService
Sehee-Lee-01 Oct 27, 2023
f7802f6
refactor: remove logging NOT_FOUND_CUSTOMER_ALLOCATION_INFORMATION
Sehee-Lee-01 Oct 27, 2023
555719b
enhance: add icon for readability
Sehee-Lee-01 Oct 27, 2023
64f26c5
enhance: add initialize database query
Sehee-Lee-01 Oct 27, 2023
934a690
refactor: implement TestConfig
Sehee-Lee-01 Oct 27, 2023
2063600
refactor: change password
Sehee-Lee-01 Oct 29, 2023
eac8c09
refactor: change sql
Sehee-Lee-01 Oct 29, 2023
0ee7c97
refactor: add DB init sql
Sehee-Lee-01 Oct 29, 2023
572123f
refactor: remove useless sql
Sehee-Lee-01 Oct 29, 2023
fbf3a30
Merge branch 'week2'
Sehee-Lee-01 Nov 1, 2023
ec5f94d
chore: change gradle repositories to mavenCentral
Sehee-Lee-01 Nov 1, 2023
fdc088e
chore: add spring-boot-starter-web dependency
Sehee-Lee-01 Nov 1, 2023
6199143
chore: add spring-boot-starter-thymeleaf dependency
Sehee-Lee-01 Nov 1, 2023
4713b2d
chore: add spring-boot-starter-aop dependency
Sehee-Lee-01 Nov 1, 2023
cb37df9
feat: implement MvcConfig and add CorsMappings
Sehee-Lee-01 Nov 1, 2023
cdda8de
refactor: change voucjer service method names
Sehee-Lee-01 Nov 1, 2023
ec6cbdd
refactor: change voucher controller method names
Sehee-Lee-01 Nov 1, 2023
4440089
refactor: refactor readById in VoucherService
Sehee-Lee-01 Nov 1, 2023
276345e
feat: implement VoucherMVCController
Sehee-Lee-01 Nov 1, 2023
7715a57
enhance: add api, console Profile at VoucherController
Sehee-Lee-01 Nov 1, 2023
6601d28
enhance: add not found messages
Sehee-Lee-01 Nov 1, 2023
82006b9
refactor: change message name
Sehee-Lee-01 Nov 1, 2023
fc97592
refactor: change properties files
Sehee-Lee-01 Nov 1, 2023
57a79e2
refactor: change VoucherResponse to record
Sehee-Lee-01 Nov 1, 2023
07aa3b1
refactor: delete datasource from AppConfig
Sehee-Lee-01 Nov 1, 2023
992acc9
refactor: check empty result readAllVoucherByCustomerId at WalletService
Sehee-Lee-01 Nov 1, 2023
0b6cdc7
fix: fix return url value
Sehee-Lee-01 Nov 1, 2023
7187d5a
refactor: change log level to debug
Sehee-Lee-01 Nov 1, 2023
ba02841
refactor: remove excluded view names
Sehee-Lee-01 Nov 2, 2023
dc58b5a
refactor: modify voucherResponse to record at ConsoleManager
Sehee-Lee-01 Nov 2, 2023
91d23af
refactor: change VoucherFileRepository profile name to "file"
Sehee-Lee-01 Nov 2, 2023
ac89726
refactor: change VoucherInMemoryRepository profile name to "memory"
Sehee-Lee-01 Nov 2, 2023
889ed83
refactor: change VoucherJDBCRepository profile name to "jdbc"
Sehee-Lee-01 Nov 2, 2023
7cba913
refactor:remove default profile
Sehee-Lee-01 Nov 2, 2023
f958b52
refactor:rename from VoucherResponse to VoucherDto
Sehee-Lee-01 Nov 2, 2023
8ec081c
feat:apply CustomerDto
Sehee-Lee-01 Nov 2, 2023
fd65a36
feat:rename field name form voucherId to id at VoucherDto
Sehee-Lee-01 Nov 2, 2023
99574c6
feat:implement cusotomers page
Sehee-Lee-01 Nov 2, 2023
8894b4b
feat:implement vouchers page
Sehee-Lee-01 Nov 2, 2023
6437dfe
feat:implement CustomerFileManager
Sehee-Lee-01 Nov 2, 2023
381760c
feat:implement VoucherFileManager
Sehee-Lee-01 Nov 2, 2023
4f6472d
feat:apply CustomerFileManager and implement save method
Sehee-Lee-01 Nov 2, 2023
5057fae
feat: save method at CustomerRepository interface
Sehee-Lee-01 Nov 2, 2023
6f4b839
feat: implement CreateCustomerRequest
Sehee-Lee-01 Nov 2, 2023
392a3bc
refactor: change csv format
Sehee-Lee-01 Nov 2, 2023
4f590eb
refactor: apply voucherFileManager at VoucherFileRepository
Sehee-Lee-01 Nov 2, 2023
3c70b49
feat: implement CustomerInMemoryRepository for test mode
Sehee-Lee-01 Nov 2, 2023
19d5763
refactor: add jdbc profile at CustomerJDBCRepository
Sehee-Lee-01 Nov 2, 2023
a28cbef
refactor: modify jdbc profile at CustomerFileRepository
Sehee-Lee-01 Nov 2, 2023
d091ce0
refactor: import Profile at CustomerJDBCRepository
Sehee-Lee-01 Nov 2, 2023
6eac420
style: format code style
Sehee-Lee-01 Nov 2, 2023
c282a95
refactor: change method name from getCustomerId to getId
Sehee-Lee-01 Nov 2, 2023
855d18e
refactor: apply customer.getId method name
Sehee-Lee-01 Nov 2, 2023
4b332e6
enhance: add findAll method at CustomerRepository interface
Sehee-Lee-01 Nov 2, 2023
2965d4f
enhance: implement findAll method at CustomerInMemoryRepository
Sehee-Lee-01 Nov 2, 2023
11c6bc2
enhance: implement findAll method at CustomerFileRepository
Sehee-Lee-01 Nov 2, 2023
936c599
enhance: implement findAll method at CustomerJDBCRepository
Sehee-Lee-01 Nov 2, 2023
c18fa5f
feat: implement CustomerMVCController
Sehee-Lee-01 Nov 2, 2023
fd762fc
feat: add "api", "console" profile and apply url mapping at CustomerC…
Sehee-Lee-01 Nov 2, 2023
07c6ff6
feat: implement create customer method at CustomerService
Sehee-Lee-01 Nov 2, 2023
f26cc61
feat: implement readAll customer method at CustomerService
Sehee-Lee-01 Nov 2, 2023
3a2e7cb
feat: implement readAll customer method at CustomerMVCController
Sehee-Lee-01 Nov 2, 2023
067407c
feat: implement readAll customer method at CustomerController
Sehee-Lee-01 Nov 2, 2023
8577178
feat: implement WalletController for console
Sehee-Lee-01 Nov 2, 2023
69b6a85
feat: implement wallets page
Sehee-Lee-01 Nov 2, 2023
c5c06fb
refactor: change return value of readCustomerByVoucherId method
Sehee-Lee-01 Nov 2, 2023
fbb7065
feat: implement WalletMVCController for mvc mode
Sehee-Lee-01 Nov 2, 2023
7977cfa
feat: implement ownweship post form
Sehee-Lee-01 Nov 2, 2023
73af02f
feat: implement voucher post form
Sehee-Lee-01 Nov 2, 2023
2f7a835
feat: implement customer post form
Sehee-Lee-01 Nov 2, 2023
1cd6106
enhance: implement all require at voucher list page
Sehee-Lee-01 Nov 3, 2023
7061836
feat: implement voucher detail page
Sehee-Lee-01 Nov 3, 2023
89dc548
feat: implement voucher register page
Sehee-Lee-01 Nov 3, 2023
0b1ff22
feat: implement voucher update page
Sehee-Lee-01 Nov 3, 2023
a98ca0a
enhance: apply new page and implement all requires at voucher feature
Sehee-Lee-01 Nov 3, 2023
3d8ba79
refactor: change update voucher parameter
Sehee-Lee-01 Nov 3, 2023
f631492
refactor: change update voucher parameter at VoucherController
Sehee-Lee-01 Nov 3, 2023
eae798e
chore: add hidden-method property
Sehee-Lee-01 Nov 3, 2023
2ad9a64
refactor: move html file to templates directory
Sehee-Lee-01 Nov 3, 2023
d614893
refactor: apply html path
Sehee-Lee-01 Nov 3, 2023
ac591e8
refactor: remove thymeleaf path setting
Sehee-Lee-01 Nov 3, 2023
e464379
fix: fix redirect path at VoucherMVCController
Sehee-Lee-01 Nov 3, 2023
7ef6477
refactor: change blacklist to blocklist
Sehee-Lee-01 Nov 3, 2023
9405ccd
Revert "refactor: change blacklist to blocklist"
Sehee-Lee-01 Nov 3, 2023
d7b3e11
feat: implement customer register page
Sehee-Lee-01 Nov 3, 2023
af91853
enhance: separate customer register form from customers
Sehee-Lee-01 Nov 3, 2023
778dab9
refactor: add bad customer check script
Sehee-Lee-01 Nov 3, 2023
62c9e9c
refactor: add mode before return view and change mapping url at Custo…
Sehee-Lee-01 Nov 3, 2023
673e5c8
fix: fix delete all query at voucher
Sehee-Lee-01 Nov 3, 2023
ffb35f4
refactor: add "file" profile at VoucherFileManager
Sehee-Lee-01 Nov 4, 2023
a3a1263
refactor: add voucher create time field at Voucher
Sehee-Lee-01 Nov 4, 2023
dafa627
refactor: add voucher create time field at VoucherDto
Sehee-Lee-01 Nov 4, 2023
0fde886
refactor: apply voucher create time at DomainMapper
Sehee-Lee-01 Nov 4, 2023
9cb477f
refactor: apply voucher create time at VoucherService
Sehee-Lee-01 Nov 4, 2023
829a017
feat: implement findAllByCreatedAt at VoucherRepository
Sehee-Lee-01 Nov 4, 2023
74a6a6e
feat: implement findAllByCreatedAt at VoucherJDBCRepository
Sehee-Lee-01 Nov 4, 2023
3d5536e
feat: implement findAllByCreatedAt at VoucherInMemoryRepository
Sehee-Lee-01 Nov 4, 2023
cf03b74
feat: implement findAllByCreatedAt at VoucherFileRepository
Sehee-Lee-01 Nov 4, 2023
44fa438
feat: implement readAllByCreatedAt at VoucherService
Sehee-Lee-01 Nov 4, 2023
0b52712
feat: implement readAllByCreatedAt at VoucherController
Sehee-Lee-01 Nov 4, 2023
6b95f0b
feat: implement FIND_ALL_BY_CREATED_AT query
Sehee-Lee-01 Nov 4, 2023
a75a95e
feat: implement FROM_KEY, TO_KEY at DomainMapper
Sehee-Lee-01 Nov 4, 2023
15afade
refactor: change url name of readAllByCreatedAt method
Sehee-Lee-01 Nov 4, 2023
54cb574
feat: FIND_ALL_BY_TYPE query at VoucherQuery
Sehee-Lee-01 Nov 4, 2023
0b707b0
feat: implement findAllByType at VoucherRepository interface
Sehee-Lee-01 Nov 4, 2023
4849019
feat: implement findAllByType at VoucherJDBCRepository
Sehee-Lee-01 Nov 4, 2023
b5ea953
feat: implement findAllByType at VoucherInMemoryRepository
Sehee-Lee-01 Nov 4, 2023
9160dfc
feat: implement findAllByType at VoucherFileRepository
Sehee-Lee-01 Nov 4, 2023
2517aac
feat: implement readAllByType at VoucherService
Sehee-Lee-01 Nov 4, 2023
1f40ebd
feat: implement readAllByType at VoucherController
Sehee-Lee-01 Nov 4, 2023
3072a7f
refactor: apply @RequestBody for api version
Sehee-Lee-01 Nov 4, 2023
3e644ae
chore: add dependencies for (un)marshalling xml at rest api
Sehee-Lee-01 Nov 4, 2023
309516c
feat: configure MessageConverter of json & xml
Sehee-Lee-01 Nov 4, 2023
a769903
fix: return VoucherDto at readById
Sehee-Lee-01 Nov 4, 2023
55f7e17
refactor: return VoucherDto at update
Sehee-Lee-01 Nov 4, 2023
ba28910
refactor: change name to ConsoleConfig and add console profile
Sehee-Lee-01 Nov 5, 2023
6c5b831
refactor: add console profile
Sehee-Lee-01 Nov 5, 2023
10edaba
refactor: change profile name from "mvc" to "thyme" and change class …
Sehee-Lee-01 Nov 5, 2023
fcd1e1c
refactor: add jdbc profile and separate useless Bean in jdbc profile
Sehee-Lee-01 Nov 5, 2023
ebb4a90
refactor: add profile at MvcConfig
Sehee-Lee-01 Nov 5, 2023
6823244
refactor: add "console", "api" profile
Sehee-Lee-01 Nov 5, 2023
0fbb989
refactor: add "file" profile at CustomerFileManager and refactor Jdbc…
Sehee-Lee-01 Nov 5, 2023
501847c
refactor: refactor application properties at one yaml file
Sehee-Lee-01 Nov 5, 2023
0bc76d4
refactor: delete TestConfig
Sehee-Lee-01 Nov 5, 2023
98fd375
fix: fix db url
Sehee-Lee-01 Nov 5, 2023
b6ffb67
refactor: move Message, Constant to util package and set Constructor …
Sehee-Lee-01 Nov 5, 2023
f45b4c6
refactor: set Constructor private
Sehee-Lee-01 Nov 5, 2023
7b90e69
chore: make new database called prod
Sehee-Lee-01 Nov 5, 2023
f0ee133
fix: fix database url
Sehee-Lee-01 Nov 5, 2023
cdc57af
fix: set convention
Sehee-Lee-01 Nov 5, 2023
2acd086
refactor: change method name from save to insert
Sehee-Lee-01 Nov 5, 2023
fbdd437
refactor: change name from VoucherDto to VoucherResponse and implemen…
Sehee-Lee-01 Nov 5, 2023
f02c0cf
refactor: refactor VoucherType from enum to abstract class and apply
Sehee-Lee-01 Nov 5, 2023
4b2f50f
refactor: refactor CreateVoucherRequest construct argument order
Sehee-Lee-01 Nov 5, 2023
c788b5e
chore: add "drop DATABASE if exists *" query
Sehee-Lee-01 Nov 5, 2023
ec70b00
refactor: fix query
Sehee-Lee-01 Nov 5, 2023
99269c9
refactor: fix value name
Sehee-Lee-01 Nov 5, 2023
f384940
refactor: remove useless class
Sehee-Lee-01 Nov 5, 2023
5e7c086
refactor: add memory property at CustomerFileRepository
Sehee-Lee-01 Nov 5, 2023
a3aa828
refactor: apply specific exception
Sehee-Lee-01 Nov 5, 2023
18125b9
refactor: apply discount value validator at view
Sehee-Lee-01 Nov 5, 2023
902a497
refactor: set code format
Sehee-Lee-01 Nov 5, 2023
9404942
fix: add voucher validator at another constructor and apply
Sehee-Lee-01 Nov 5, 2023
4e365c3
fix: add customer validator at customer and apply
Sehee-Lee-01 Nov 5, 2023
23312dd
refactor: change CustomerDto to CustomerResponse and apply
Sehee-Lee-01 Nov 5, 2023
056740c
enhance: apply EmptyResultDataAccessException ay *JDBCRepository
Sehee-Lee-01 Nov 5, 2023
601d360
fix: fix readAllByType logic
Sehee-Lee-01 Nov 5, 2023
62f93aa
refactor: make DomainMapper to util class
Sehee-Lee-01 Nov 5, 2023
e74c09c
fix: re-write voucher.json file
Sehee-Lee-01 Nov 6, 2023
073eaa8
refactor: split DomainMapper
Sehee-Lee-01 Nov 6, 2023
1ea7610
refactor: add objectMapper Bean
Sehee-Lee-01 Nov 6, 2023
82095df
Merge branch 'week3' of https://github.com/Sehee-Lee-01/springboot-ba…
Sehee-Lee-01 Nov 6, 2023
c74eccd
refactor: re-packaging repository package
Sehee-Lee-01 Nov 6, 2023
189baff
refactor: re-packaging controller package
Sehee-Lee-01 Nov 6, 2023
6cae5cc
refactor: add equals & hashCode at domain classes
Sehee-Lee-01 Nov 6, 2023
ca75045
refactor: fix sql query
Sehee-Lee-01 Nov 6, 2023
1fc9543
refactor: remove test profile properties
Sehee-Lee-01 Nov 6, 2023
d914de4
refactor: apply @JdbcTest
Sehee-Lee-01 Nov 6, 2023
c3ced3f
refactor: make code shorter
Sehee-Lee-01 Nov 6, 2023
f9c0c97
refactor: refactor VoucherService
Sehee-Lee-01 Nov 6, 2023
07bd0d3
fix: make files and properties for test
Sehee-Lee-01 Nov 6, 2023
1c89375
refactor: apply test profile for test
Sehee-Lee-01 Nov 6, 2023
a058e13
refactor: add null check at customer constructor
Sehee-Lee-01 Nov 6, 2023
bf8699c
test: test customer constructor
Sehee-Lee-01 Nov 6, 2023
22be404
test: voucher domain test
Sehee-Lee-01 Nov 6, 2023
67b41a6
refactor: refactor WalletService
Sehee-Lee-01 Nov 6, 2023
2274583
test: make VoucherServiceTest code run
Sehee-Lee-01 Nov 6, 2023
bd4261c
test: make WalletServiceTest code run
Sehee-Lee-01 Nov 6, 2023
52bc813
refactor: set environment variable at app properties
Sehee-Lee-01 Nov 6, 2023
30e61b4
refactor: delete todo
Sehee-Lee-01 Nov 6, 2023
dac2da8
refactor: change test method name
Sehee-Lee-01 Nov 6, 2023
c7026e7
refactor: remove @ConfigurationPropertiesScan annotation
Sehee-Lee-01 Nov 6, 2023
e099ebe
refactor: implement findAllBlackCustomerAndReturnEmpty() and refactor…
Sehee-Lee-01 Nov 7, 2023
1032186
refactor: return deleted voucher when delete voucher
Sehee-Lee-01 Nov 7, 2023
6157b1f
chore: add jackson-datatype-jsr310 for local-datetime parsing while test
Sehee-Lee-01 Nov 7, 2023
06d1379
test: test voucher rest controller without readAllByCreatedAt, readAl…
Sehee-Lee-01 Nov 7, 2023
f22e874
refactor: refactor WalletJDBCRepositoryTest code
Sehee-Lee-01 Nov 7, 2023
07a74b4
fix: fix deleteVoucher test at VoucherServiceTest
Sehee-Lee-01 Nov 7, 2023
8f69208
refactor: return CustomerResponse when insert customer
Sehee-Lee-01 Nov 7, 2023
3475505
fix: add @RequestBody at create customer method parameter
Sehee-Lee-01 Nov 7, 2023
182b6ea
refactor: refactor uuid created in the customer constructor
Sehee-Lee-01 Nov 7, 2023
031a55b
test: test Customer rest Controller
Sehee-Lee-01 Nov 7, 2023
2f91647
refactor: apply @Transactional
Sehee-Lee-01 Nov 7, 2023
7978530
refactor: split CustomerController
Sehee-Lee-01 Nov 8, 2023
fa08283
test: test CustomerRestController
Sehee-Lee-01 Nov 8, 2023
acf8aa5
refactor: apply CustomerConsoleController
Sehee-Lee-01 Nov 8, 2023
690261d
refactor: apply VoucherConsoleController
Sehee-Lee-01 Nov 8, 2023
500d557
refactor: change code format
Sehee-Lee-01 Nov 8, 2023
056b40a
refactor: implement VoucherConsoleController(split from VoucherContro…
Sehee-Lee-01 Nov 8, 2023
849524a
refactor: implement VoucherRestController(split from VoucherController)
Sehee-Lee-01 Nov 8, 2023
41515a4
test: test VoucherRestController
Sehee-Lee-01 Nov 8, 2023
ce813fd
refactor: split validate method at customer
Sehee-Lee-01 Nov 8, 2023
1824937
style: set code format
Sehee-Lee-01 Nov 8, 2023
6e294d7
refactor: change field name at customer(isBlack)
Sehee-Lee-01 Nov 8, 2023
c8e7eae
refactor: delete query class and apply directly
Sehee-Lee-01 Nov 8, 2023
d6e8faa
style: set code format at sql file
Sehee-Lee-01 Nov 8, 2023
7d379d8
refactor: refactor code and write TODO
Sehee-Lee-01 Nov 8, 2023
8d77597
test: test VoucherRestController readAllByCreatedAt, readAllByType
Sehee-Lee-01 Nov 8, 2023
3da3110
refactor: change method name
Sehee-Lee-01 Nov 8, 2023
09a684b
refactor: delete useless method
Sehee-Lee-01 Nov 8, 2023
0be97c6
refactor: exclude autoconfigure datasource when file profile active
Sehee-Lee-01 Nov 8, 2023
2ea4072
refactor: refactor FileRepository
Sehee-Lee-01 Nov 8, 2023
452e2e8
refactor: refactor wallet profile
Sehee-Lee-01 Nov 8, 2023
c233f1b
refactor: formatting code to 1 depth
Sehee-Lee-01 Nov 8, 2023
7e7f91b
refactor: refactor voucher constructor
Sehee-Lee-01 Nov 8, 2023
22710b4
refactor: change html language
Sehee-Lee-01 Nov 9, 2023
5c244ec
refactor: refactor create method by writing created resource url at V…
Sehee-Lee-01 Nov 9, 2023
ea48f3f
refactor: apply param method at CustomerRestControllerTest
Sehee-Lee-01 Nov 9, 2023
21fc4ec
feat: implement MvcControllerResource for MvcControllerTest
Sehee-Lee-01 Nov 9, 2023
d4a48d2
test: test CustomerThymeleafController
Sehee-Lee-01 Nov 9, 2023
da3a9c1
refactor: apply query param filtering at CustomerThymeleafController
Sehee-Lee-01 Nov 9, 2023
455451d
style: change code format at VoucherRestController
Sehee-Lee-01 Nov 9, 2023
ea48514
refactor: split test resources from VoucherRestControllerTest
Sehee-Lee-01 Nov 9, 2023
d022128
refactor: fix word mistake
Sehee-Lee-01 Nov 9, 2023
729cc06
test: test VoucherThymeleafController
Sehee-Lee-01 Nov 9, 2023
986d807
refactor: delete returning emptyList(Constant)
Sehee-Lee-01 Nov 9, 2023
1c76fea
fix: change return url when voucher created
Sehee-Lee-01 Nov 12, 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
67 changes: 67 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

# Created by https://www.toptal.com/developers/gitignore/api/gradle
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle

### 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/gradle

logs/
43 changes: 43 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
plugins {
id 'java-library'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
}

apply plugin: 'io.spring.dependency-management'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation 'org.codehaus.woodstox:woodstox-core-asl:4.4.1'
runtimeOnly 'mysql:mysql-connector-java:8.0.33'
implementation 'org.beryx:text-io:3.4.1'
testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
useJUnitPlatform()
}

group = 'com.programmers'
version = '0.0.1-SNAPSHOT'
description = 'voucherManagement'
java.sourceCompatibility = JavaVersion.VERSION_17

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
249 changes: 249 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################

# Attempt to set APP_HOME

# Resolve links: $0 may be a link
app_path=$0

# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done

# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

warn () {
echo "$*"
} >&2

die () {
echo
echo "$*"
echo
exit 1
} >&2

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi

# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.

# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

JAVACMD=$( cygpath --unix "$JAVACMD" )

# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#

eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'

exec "$JAVACMD" "$@"
Loading