โข
Entity
โฆ
setter ์ฌ์ฉ ๊ธ์ง
โฆ
๋ฉ์๋ ์ฌ์ฉ
โฆ
Builder ์ฌ์ฉ
โฆ
column ์ ์ธ์ ์ฌ๋งํ๋ฉด wrapper class๋ก ์ ์ธ
โช
ํ์ง๋ง primitive type์ด ํ์ํ ๋๊ฐ ์๋ค๋ฉด ์ฌ์ฉํ๊ณ , ๋ฆฌ๋ทฐํ ๋ ์ง๋ฌธ๊ณผ ๋ต๋ณ
โข
Custom ResponseEntity ์ฌ์ฉ
โฆ
status, message, data
โข
DTO
โฆ
column ๋ถ๊ฐ
โฆ
api 1๊ฐ๋น
โช
์ค๋ณต๋ ์์ฒญ์ผ ๋, API๋ณ๋ก ๋ง๋ค๊ธฐ
โช
์ค๋ณต๋ ์๋ต์ผ ๋, DomainInfoResponse, DomainInfoDetailResponse ๋ง๋ค์ด์ ํ์ฉ
โช
๋ค์ด๋ฐ: ๋๋ฉ์ธ + ๊ธฐ๋ฅ + ์์ฒญor์๋ต (Requset, Response)
UserCreateResponse
DomainDeleteRequest
Markdown
๋ณต์ฌ
โฆ
Response: @Builder, @Getter
โฆ
Request: @Getter
โข
Repository
โฆ
optional๋ ํ์ฉ
โฆ
method๋ก ์ฌ์ฉ
โข
Service
โฆ
update โ transactional, LAZY โ tr = readonly = true
โข
ํจํค์ง ๊ตฌ์กฐ
โฆ
domain / global / infra (๋๋ฉ์ธ ๋ณ๋ก)
โข
User
โฆ
oauth2.0
โข
yml vs proiperties = yml
โข
database name
โข
๊ณตํต response
โข
BaseTimeEntity
โข
Exception
โฆ
CustomException : httpStatus, message
โฆ
ExceptionCode :
โช
BAD_REQUEST 400
โช
UNAUTHORIZED 401
โช
FORRBIDDEN 403
โช
NOT_FOUND 404
โช
CONFLICT 409
โช
naming
โข
BAD_REQUEST_XX_XXXXX_XXX
โฆ
CustomException ์์๋ฐ์์ DomainCustomException ๋ง๋ค๊ธฐ. ์ฒ๋ฆฌ๋ CustomException ํ๋๋ก
โฆ
advice ์ฌ์ฉ
โข
Swagger ์ ์ฉ
โฆ
convention์ ๊ตฌ์ฑ ํ์ ์์ฑ
โข
Quiz ๋ต์ ์ค๋ณต๋ต์ผ ๊ฒฝ์ฐ์ :::
โฆ
answer1 ::: answer2 ::: answer3
โฆ
์ด๋ฐ ์์ผ๋ก ::: ๋ก ๊ตฌ๋ถํด์ ํ ์ค๋ก ๋ฐ์
CQRS ๋์
์ ๋ํด์โฆ ๋ณด๋ฅ
service impl ๋ถ๋ฆฌ์ ๋ํด์โฆ ๋ณด๋ฅ


