ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 230103 TIL
    TIL 2023. 1. 3. 19:33

    Layered Architecture Pattern으로 api를 구성했을 때,

    repository 계층에서 service 계층으로 데이터를 보내고,

    service에서 예외 처리를 한 뒤에 다시 DB에 접근해야 한다면,

    다시 repository로 보내서 처리!

     

    순서는

    controller -> service -> repository -> service -> repository -> service -> controller

    이런식으로 자유로움

     

     

    'TIL' 카테고리의 다른 글

    230107 WIL  (0) 2023.01.12
    230104 TIL  (0) 2023.01.04
    221231 TIL  (0) 2022.12.31
    20221230 TIL  (0) 2022.12.31
    221227 WIL  (3) 2022.12.27
Designed by Tistory.