[π μ¬μ΄ν΄2 - λ―Έμ (μμ½ λ³κ²½/μ·¨μμ μλ¬ μ²λ¦¬)] μ°λ λ―Έμ μ μΆν©λλ€.#431
Open
armd482 wants to merge 54 commits into
Open
[π μ¬μ΄ν΄2 - λ―Έμ
(μμ½ λ³κ²½/μ·¨μμ μλ¬ μ²λ¦¬)] μ°λ λ―Έμ
μ μΆν©λλ€.#431armd482 wants to merge 54 commits into
armd482 wants to merge 54 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
μ²΄ν¬ λ¦¬μ€νΈ
testλ₯Ό μ€ννμ λ, λͺ¨λ ν μ€νΈκ° μ μμ μΌλ‘ ν΅κ³Όνλμ?λ² μ΄μ€ μ½λ μ ν 체ν¬
λ°°ν¬ μ£Όμ
https://reservation-front-eta.vercel.app/
https://reservation-front-eta.vercel.app/admin
μ΄λ€ λΆλΆμ μ§μ€νμ¬ λ¦¬λ·°ν΄μΌ ν κΉμ?
μ΄λ² μμ½ μ λ°μ΄νΈμ κ²½μ° μ΄λ€ λ©μλκ° μ μ ν κΉ κ³ λ―Όνμ΅λλ€.
postμ κ²½μ° RFS 9110μ λ°λ₯΄λ©΄, λ¨μν μΆκ°κ° μλ λ°μ΄ν°μ λν μμ²μΌλ‘ λκ² λ°λΌλ³΄κ³ μκ³ ,
putμ κ²½μ° μ 체 λ°μ΄ν°λ₯Ό μμ , μΆκ°μ μν λ‘,
patchλ λΆλΆ λ°μ΄ν°λ₯Ό μμ ν λ μ¬μ©νλ κ²μΌλ‘ μκ³ μμ΅λλ€.
κ·Όλ°, patchμ κ²½μ° μΌλ°μ μΌλ‘ ν΄λΌμ΄μΈνΈμμ μ 체 λ°μ΄ν°λ₯Ό μμ§ λͺ»νκ±°λ, bodyλ‘ μ λ¬ν΄μΌ νλ λ°μ΄ν°κ° ν° κ²½μ° ν¨μ¨μ μΌλ‘ μ λ¬νκΈ° μν΄ λ±μ₯ν κ±Έλ‘ μκ³ μμΌλ©° νμ¬μ κ²½μ°, μ΄λ―Έ ν΄λΌμ΄μΈνΈμμ μμ½ λ°μ΄ν° μ 체λ₯Ό μκ³ μμΌλ©°, bodyλ‘ μ λ¬νλ λ°μ΄ν°κ° μλλ―λ‘ patchλ νλ¨ν΄ ν보μμ μ μΈνμ΅λλ€.
λ¨μ PUTκ³Ό POST μ¬μ΄μμ κ³ λ―Όν κ²°κ³Ό, PUTμ μμ²ν IDκ° μλ²μ μμ κ²½μ° μ κ· λ¦¬μμ€λ₯Ό μμ±(Create)νλ λμμ ν¬ν¨νκΈ° λλ¬Έμ, κΈ°μ‘΄ μμ½ κ±΄μ λν΄μλ§ μ격νκ² μμ μ μ²λ¦¬ν΄μΌ νλ λ³Έ λΉμ¦λμ€ λ‘μ§μλ μ μ νμ§ μλ€κ³ κ²°λ‘ μ§μμ΅λλ€. λ°λΌμ 리μμ€ μ²λ¦¬μ λν μ μ°μ±μ΄ λκ³ μλμΉ μμ μμ±μ λ°©μ§ν μ μλ POST λ°©μμ μ΅μ’ μ μΌλ‘ μ ννκ² λμμ΅λλ€.
μ΄λ¬ν κ²°μ λ°©ν₯μ λν΄ μ΄λ»κ² μκ°νμλμ§ μ견μ λ£κ³ μΆμ΅λλ€.
νμ¬μ κ²½μ° CustomExceptionκ³Ό, dto valid κ΄λ ¨ MethodArgumentNotValidException, runtimeExceptionλ§ κ±Έκ³ μλλ°, μ΄ μ΄μ λ μ΄λ―Έ λλ©μΈ/μλΉμ€λ¨μμ, μ λ¬ λ°μ κ°μ΄ μ ν¨ν κ°λ€μΈμ§, ν΄λΉ λ°μ΄ν°κ° μ‘΄μ¬νλμ§, μ°Έμ‘°λκ³ μλ λ°μ΄ν°μΈμ§ λ±μ κ²μ¦νκ³ μμ΅λλ€. κ·Έλμ, repositoryμμ λ°μνλ sql exceptionμ λν΄μλ handlerλ₯Ό λ±λ‘ν νμκ° μμ§ μμκΉ μκ°νλλ°(μ΄κ±Έ handlingν΄μ ν΄λΌμ΄μΈνΈμ μ λ¬ν΄λ ν΄κ²°ν μ μλ λ¬Έμ μλκ° μκ°ν©λλ€.), μ΄μ λν΄μ μ견μ λ£κ³ μΆμ΅λλ€